/* ==========================================================================
* 파    일 : NpcTarotResultWindow.h
* 목    적 : 점집결과 윈도우
* 작 성 자 : 김가람 
* 작 성 일 : 2009-01-06
* 주의사항 :
*===========================================================================*/
#pragma once
#include "UIWindow.h"

class cLabel;
class cTarotWindow;
struct sNpcSpread;

class cNpcTarotResultWindow : public cUIWindow
{
public:
	cNpcTarotResultWindow();
	virtual ~cNpcTarotResultWindow();

	void SetDesc( LPCTSTR desc );			/// 카드 해석 삽입
	void SetQuestion( LPCTSTR question );	/// 질문
	void SetCardInfo( LPCTSTR info );		/// 오픈된 카드정보
	void SetComment( LPCTSTR comment );		/// 질문에 대한 해석

protected:
	bool OnCreate( cUINodeProperty* pproperty );
	void OnCommand( cUINode* pnode, unsigned int id );
	void OnRender( cUIFontItemKeeper* pKeeper );
	void UpdateSkin();
	void OnHide();
	void OnShow();

	void ShowButton( bool show );
	void UpdateButton();

private:
	cTarotWindow*	mpMain;

	cLabel*		mpDesc;
	cLabel*		mpQuestion;
	cLabel*		mpOpenCardInfo;
	cLabel*		mpComment;

	cUINode*	mpResult;
	cUINode*	mpRightBtn;
	cUINode*	mpUpBtn;

	sNpcSpread*	mpSpread;
};