/* ==========================================================================
* 파    일 : ExitWindow.h
* 목    적 : 게임 종료 윈도우
* 작 성 자 : 김가람
* 작 성 일 : 2007-10-24
* 주의사항 :
*===========================================================================*/
#pragma once
#include "UIWindow.h"

/// 하단 버튼 메뉴 윈도우
class cButton;
class cLabel;
class cExitWindow : public cUIWindow
{
public:
	cExitWindow();
	virtual ~cExitWindow();

	bool UIStageIn();

protected:
	bool OnCreate( cUINodeProperty* pproperty );
	void OnCommand( cUINode* pcaller, unsigned int id );
	void UpdateSkin();
	void OnNetLock( int lockTry );
	void OnNetUnLock( int lockTry );

private:
	/// 버튼
	cButton* mpDisConnect;
	cButton* mpGameOut;
};


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

	void ShowExitMsg( bool exit );
	void StartCount() { mStartCount = true; }

protected:
	bool OnCreate( cUINodeProperty* property );
	void OnProcess( unsigned long deltaTime, unsigned long accumTime );
	void OnCommand( cUINode* node, unsigned int id );
	void UpdateSkin();
	bool HandleEvent( const cUIEvent& event );

private:
	cLabel* mpCaption;
	cLabel* mpMsgText;
	cButton* mpCancelBtn;

	unsigned long mDelayTime;
	bool mExitEvent;
	bool mStartCount;

/*
	void ShowModal();

public:
	void SetTargetIdx( unsigned long duelTargetIdx ) { mDuelTargetIdx = duelTargetIdx; }

protected:
	bool OnCreate( cUINodeProperty* property );
	void OnShow();
	void OnCommand( cUINode* node, unsigned int id );
	void OnProcess( unsigned long deltaTime, unsigned long accumTime );
	bool HandleEvent( const cUIEvent& event );

	void ButtonSelect( unsigned int id );

private:
	unsigned long	mWindowCloseTime;
	unsigned long	mDuelTargetIdx;

	cRangeCheck		mRangeCheck;

	unsigned long	mLeftTime;		///  남은 초
*/
};
