46 lines
1.2 KiB
C++
46 lines
1.2 KiB
C++
#include "stdafx.h"
|
|
#include "SUIArenaGameSlaughterWnd.h"
|
|
//#include "SGameMessageUI.h"
|
|
#include "SGameManager.h"
|
|
#include "CommonUtil.h"
|
|
#include "SStringDB.h"
|
|
|
|
SUIArenaGameSlaughterWnd::SUIArenaGameSlaughterWnd(SGameManager* gameManager) : SUIArenaGameWnd(gameManager)
|
|
{
|
|
}
|
|
|
|
SUIArenaGameSlaughterWnd::~SUIArenaGameSlaughterWnd()
|
|
{
|
|
}
|
|
|
|
void SUIArenaGameSlaughterWnd::setTooltip()
|
|
{
|
|
SUIArenaGameWnd::setTooltip();
|
|
|
|
SetChildTooltip("panel_status_default_01", S(2315));
|
|
}
|
|
|
|
void SUIArenaGameSlaughterWnd::setShow(bool show)
|
|
{
|
|
m_pGameManager->PostMsgAtDynamic( new SIMSG_SHOW_UIWINDOW( SIMSG_TOGGLE_UIWINDOW::UIWINDOW_ARENA_GAME_SLAUGHTER, show));
|
|
}
|
|
|
|
void SUIArenaGameSlaughterWnd::procMsgBattleInfo(SGameMessage* msg)
|
|
{
|
|
SUIArenaGameWnd::procMsgBattleInfo(msg);
|
|
setPropStateIcon(_PROP_STATE::PS_NEUTRAL);
|
|
}
|
|
|
|
void SUIArenaGameSlaughterWnd::procMsgBattleStatus(SGameMessage* msg)
|
|
{
|
|
SMSG_BATTLE_ARENA_BATTLE_STATUS* _msg = dynamicCast<SMSG_BATTLE_ARENA_BATTLE_STATUS*>(msg);
|
|
setPropStateIcon((int)_msg->GetPropState(0));
|
|
}
|
|
|
|
void SUIArenaGameSlaughterWnd::setPropStateIcon(int status)
|
|
{
|
|
sArenaUtility utility;
|
|
char const* aniName = utility.getSlaughterPropIconAniName(status);
|
|
SetChildAniName("panel_status_default_01", aniName);
|
|
}
|