//
// EditorUI::showUI from 0x10003d740 to 0x10003d89a (346 bytes)
//
// 4 xrefs:
// > EditorUI::onPlaytest @ 0x10000c678
// > EditorUI::onStopPlaytest @ 0x10000c743
// > EditorUI::onStopPlaytest @ 0x10000c76d
// > EditorUI::playtestStopped @ 0x10003d8e3
//
// 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)
{
GameManager *v3; // rax
unsigned __int8 v4; // r14
unsigned int v5; // r15d
__int64 v6; // rax
EditButtonBar *m_createButtonBar; // rdi
bool v8; // al
bool v9; // al
cocos2d::CCMenu *m_deleteMenu; // rdi
v3 = GameManager::sharedState();
v4 = a2 | !GameManager::getGameVariable(v3, "0046");
if ( (unsigned int)sub_100720070(a1->m_uiItems) )
{
v5 = 0;
do
{
v6 = sub_1007200C0(a1->m_uiItems, v5);
(*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v6 + 328LL))(v6, v4);
++v5;
}
while ( v5 < (unsigned int)sub_100720070(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 ( v4 )
v8 = a1->m_selectedMode == 2;
else
v8 = 0;
((void (__fastcall *)(EditButtonBar *, bool))m_createButtonBar->setVisible)(m_createButtonBar, v8);
}
if ( v4 )
v9 = a1->m_selectedMode == 3;
else
v9 = 0;
((void (__fastcall *)(EditButtonBar *, bool))a1->m_editButtonBar->setVisible)(a1->m_editButtonBar, v9);
m_deleteMenu = a1->m_deleteMenu;
if ( v4 )
{
((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);
}
}