//
// EditorUI::showUI from 0x1003ee4a4 to 0x1003ee5fc (344 bytes)
//
// 3 xrefs:
// > EditorUI::onPlaytest @ 0x1003c796c
// > EditorUI::onStopPlaytest @ 0x1003c7a2c
// > EditorUI::playtestStopped @ 0x1003ee620
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditorUI::showUI(EditorUI *a1, bool a2)
{
_BOOL4 v2; // w20
GameManager *v4; // x0
__int64 v5; // x20
unsigned int v6; // w21
__int64 v7; // x0
EditButtonBar *m_createButtonBar; // x0
_BOOL8 v9; // x1
_BOOL8 v10; // x1
cocos2d::CCMenu *m_deleteMenu; // x0
v2 = a2;
v4 = GameManager::sharedState();
v5 = !GameManager::getGameVariable(v4, "0046") | (unsigned int)v2;
if ( (unsigned int)sub_10024A36C((__int64)a1->m_uiItems) )
{
v6 = 0;
do
{
v7 = sub_10024A388((__int64)a1->m_uiItems, v6);
(*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v7 + 328LL))(v7, v5);
++v6;
}
while ( v6 < (unsigned int)sub_10024A36C((__int64)a1->m_uiItems) );
}
if ( !a1->m_stickyControlsEnabled )
{
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_unlinkBtn->setVisible)(a1->m_unlinkBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_linkBtn->setVisible)(a1->m_linkBtn, 0);
((void (__fastcall *)(CCMenuItemSpriteExtra *, _QWORD))a1->m_enableLinkBtn->setVisible)(a1->m_enableLinkBtn, 0);
}
m_createButtonBar = a1->m_createButtonBar;
if ( m_createButtonBar )
{
if ( (_DWORD)v5 )
v9 = a1->m_selectedMode == 2;
else
v9 = 0;
((void (__fastcall *)(EditButtonBar *, _BOOL8))m_createButtonBar->setVisible)(m_createButtonBar, v9);
}
if ( (_DWORD)v5 )
v10 = a1->m_selectedMode == 3;
else
v10 = 0;
((void (__fastcall *)(EditButtonBar *, _BOOL8))a1->m_editButtonBar->setVisible)(a1->m_editButtonBar, v10);
m_deleteMenu = a1->m_deleteMenu;
if ( (_DWORD)v5 )
{
((void (__fastcall *)(cocos2d::CCMenu *, bool))m_deleteMenu->setVisible)(m_deleteMenu, a1->m_selectedMode == 1);
EditorUI::updateGroupIDLabel(a1);
}
else
{
((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))m_deleteMenu->setVisible)(m_deleteMenu, 0);
}
}