// INFMissionSelInfluence.h: interface for the CINFMissionSelInfluence class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_INFMISSIONSELINFLUENCE_H__EDFFCB03_BB80_47C2_89D5_BF31C0A6D7F1__INCLUDED_)
#define AFX_INFMISSIONSELINFLUENCE_H__EDFFCB03_BB80_47C2_89D5_BF31C0A6D7F1__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "INFBase.h"
#include "INFAlertMsgBox.h"


class CINFMissionMain;


class CINFImageEx;
class CINFGroupImage;
// 폰트 종류
#define DEC_FONT_TITLE		0
#define DEC_FONT_TXT		1
#define MAX_DEC_FONT		2

// 진형 종류
#define INFLUENCE_BCU		0
#define INFLUENCE_ANI		1
#define MAX_INFLUENCE		2

// 2014-07-01 by ymjoo DrawText 성능 개선 작업 (세력 선택)
#ifdef C_DRAWTEXT_UPGRADE_YMJOO
#define	MAX_LINE_COUNT		18		
#endif
// END 2014-07-01 by ymjoo DrawText 성능 개선 작업 (세력 선택)

class CINFMissionSelInfluence  
{
public:
	CINFMissionSelInfluence(CINFMissionMain* i_pParent);
	virtual ~CINFMissionSelInfluence();

	virtual HRESULT InitDeviceObjects();
	virtual HRESULT RestoreDeviceObjects();
	virtual HRESULT DeleteDeviceObjects();
	virtual HRESULT InvalidateDeviceObjects();
	virtual void	Render();
	virtual void	Tick();

	int WndProc(UINT uMsg, WPARAM wParam, LPARAM lParam);

	void InitInfluenceMission();
	
	void HideSelInfluence();

private:
	void RenderMissionInfo();
	void UpdateScrollPos();

	int OnMouseWheel(WPARAM wParam, LPARAM lParam);
	int OnLButtonDown(WPARAM wParam, LPARAM lParam);
	int OnMouseMove(WPARAM wParam, LPARAM lParam);
	int OnLButtonUp(WPARAM wParam, LPARAM lParam);

	void OnSelectInfluence(int nInfluence);
	void OnSelectVCN();
	void OnSelectANI();
	// 2009-02-26 by bhsohn 세력선택시, 무조건 확인창 뜨게함
	//void ShowMsgBox(int nInflChoiceOver);
	void ShowMsgBox(int nInflChoiceOver, BOOL bOverInfluence);

	// 메시지 박스 클릭
	void OnAlerertMsgBox(BOOL bOk);
private:
	CINFMissionMain*		m_pParent;
	// 배경 
#ifdef C_EPSODE4_UI_CHANGE_JSKIM
	CINFGroupImage*				m_pMissionImg;
#else
	CINFImageEx*				m_pMissionImg;
#endif
	// 경고창
	CINFAlertMsgBox*		m_pINFAlertMsgBox;

	// 배경 이미지 위치및 크기
	float			m_fBackPosX;
	float			m_fBackPosY;

	// 세력 선택 미션	
	int						m_nInfluencePosX;
	int						m_nInfluencePosY;

	// 미션 설명
	vector<string>			m_vecVCUfluenceDesc;			// 미션 설명
	vector<string>			m_vecANIfluenceDesc;			// 미션 설명

	// 설명 관련 인터페이
	// 2014-07-01 by ymjoo DrawText 성능 개선 작업 (세력 선택)
#ifdef C_DRAWTEXT_UPGRADE_YMJOO
	CD3DHanFont*			m_pMissionFontInfluenceL[MAX_DEC_FONT][MAX_LINE_COUNT + 1];
	CD3DHanFont*			m_pMissionFontInfluenceR[MAX_DEC_FONT][MAX_LINE_COUNT + 1];
#else
 	CD3DHanFont	*			m_pMissionFontfluenceL[MAX_DEC_FONT];
 	CD3DHanFont	*			m_pMissionFontfluenceR[MAX_DEC_FONT];
#endif
	// END 2014-07-01 by ymjoo DrawText 성능 개선 작업 (세력 선택)

	// 스크롤 바
	CINFArenaScrollBar*		m_pINFScrollBar[MAX_INFLUENCE];

	// 진형 선택
	CINFImageBtn*			m_pSelInfluenceBtn[MAX_INFLUENCE];	

	// 선택한 진형
	int						m_nInflChoiceOver;

};

#endif // !defined(AFX_INFMISSIONSELINFLUENCE_H__EDFFCB03_BB80_47C2_89D5_BF31C0A6D7F1__INCLUDED_)
