107 lines
2.6 KiB
C++
107 lines
2.6 KiB
C++
|
|
#ifndef _PARTY_RENEWAL_
|
|
|
|
#pragma once
|
|
|
|
#include "SUIWnd.h"
|
|
|
|
class SUIDungeonStoneWnd : public SUIWnd
|
|
{
|
|
struct DungeonInfo
|
|
{
|
|
DungeonInfo() { nLv = nSiegeCnt = nMasterLv = UserCnt = nApplicationCnt = 0; }
|
|
std::string strDungeonName;
|
|
int nLv;
|
|
int nSiegeCnt;
|
|
std::string strGuild;
|
|
std::string strMaster;
|
|
int nMasterLv;
|
|
int UserCnt;
|
|
int nApplicationCnt;
|
|
};
|
|
|
|
/*struct Raid
|
|
{
|
|
Raid(
|
|
std::string _strGuildName
|
|
, std::string _strMasterName
|
|
, int _nMasterLv
|
|
, std::string _strBattleMasterName
|
|
, int _nBattleMasterLv
|
|
, int _nUserCnt
|
|
, int _nTime )
|
|
: strGuildName ( _strGuildName )
|
|
, strMasterName ( _strMasterName )
|
|
, nMasterLv ( _nMasterLv )
|
|
, strBattleMasterName ( _strBattleMasterName )
|
|
, nBattleMasterLv ( _nBattleMasterLv )
|
|
, nUserCnt ( _nUserCnt )
|
|
, nTime ( _nTime )
|
|
{
|
|
}
|
|
|
|
std::string strGuildName;
|
|
std::string strMasterName;
|
|
std::string strBattleMasterName;
|
|
int nMasterLv;
|
|
int nBattleMasterLv;
|
|
int nUserCnt;
|
|
int nTime;
|
|
};*/
|
|
|
|
struct Raid
|
|
{
|
|
Raid(
|
|
std::string _strGuildName
|
|
, std::string _strMasterName
|
|
, int _nMasterLv
|
|
, int _nUserCnt
|
|
, int _nTime )
|
|
: strGuildName ( _strGuildName )
|
|
, strMasterName ( _strMasterName )
|
|
, nMasterLv ( _nMasterLv )
|
|
, nUserCnt ( _nUserCnt )
|
|
, nTime ( _nTime )
|
|
{
|
|
}
|
|
|
|
std::string strGuildName;
|
|
std::string strMasterName;
|
|
int nMasterLv; // 연합길드여부
|
|
int nUserCnt;
|
|
int nTime;
|
|
};
|
|
|
|
public:
|
|
SUIDungeonStoneWnd( SGameManager* pGameManager ) : SUIWnd( pGameManager ), m_nListCnt(0) {};
|
|
virtual ~SUIDungeonStoneWnd();
|
|
|
|
virtual bool InitControls( KPoint kPos );
|
|
virtual bool InitData( bool bReload = false );
|
|
virtual void PumpUpMessage( LPCSTR lpszControlID, DWORD nMessage, DWORD lparam, DWORD wparam );
|
|
virtual void ProcMsgAtStatic( SGameMessage* pMsg );
|
|
virtual void OnNotifyUIWindowOpen( bool bOpen, bool bLimitWnd = true );
|
|
|
|
protected:
|
|
void SetDungeonInfoCaption(DungeonInfo dungeon);
|
|
std::string GetListCaption(Raid raid);
|
|
std::string GetTimeString( float f_Time );
|
|
void SetDungeonInfo(struct SMSG_NPC_DIALOG* pNPCDlgMsg);
|
|
void SetRaidList(struct SMSG_NPC_DIALOG* pNPCDlgMsg);
|
|
void SetControlButton(struct SMSG_NPC_DIALOG* pNPCDlgMsg);
|
|
void UpdateStoneInfo();
|
|
void SortRaidList();
|
|
void GetStringList( std::vector<std::string>& rStrList, std::string Text );
|
|
std::string GetDungeonRank(int nLv);
|
|
void ClearList();
|
|
void ClearDungeonInfo();
|
|
int GetLocalFlag();
|
|
|
|
private:
|
|
int m_nListCnt;
|
|
DungeonInfo m_sDungeonInfo;
|
|
std::vector<Raid> m_vecRaidList;
|
|
std::string m_strHanDle[3];
|
|
};
|
|
|
|
#endif |