UI: [Modify] Client에서 InfoInstance에 지금 UI가 어떤 상태인지

This commit is contained in:
qordlsgur
2025-12-05 15:56:22 +09:00
parent c7f8c15de4
commit 52e2bd8146
9 changed files with 196 additions and 51 deletions
@@ -133,6 +133,16 @@ void CInfoInstance::Key_Input(_uint Input)
Event_CallBack(TEXT("Spell"), &m_eInput);
break;
case ENUM_CLASS(KEYINPUT::INPUT_T):
if (m_eUI_State == UI_STATE::GAMEPLAYER)
{
m_eUI_State = UI_STATE::SPELL;
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
}
else if (m_eUI_State == UI_STATE::SPELL)
{
m_eUI_State = UI_STATE::GAMEPLAYER;
Event_CallBack(TEXT("Canvas_Change"), &m_eUI_State);
}
break;
case ENUM_CLASS(KEYINPUT::INPUT_G):
@@ -146,6 +156,11 @@ void CInfoInstance::Key_Input(_uint Input)
}
}
void CInfoInstance::Set_UISTATE(UI_STATE eState)
{
m_eUI_State = eState;
}
void CInfoInstance::Add_Event(_wstring EventName, function<void(void*)> Event)
{
UI_Event.emplace(EventName, Event);