//
// EditorUI::showUI from 0x68e78c to 0x68e924 (408 bytes)
//
// 4 xrefs:
// > EditorUI::playtestStopped @ 0x6961c8
// > EditorUI::onStopPlaytest @ 0x696290
// > EditorUI::onPlaytest @ 0x6beea0
// > ??> @ 0x75f60
//
// 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 EditorUI::showUI(EditorUI *a1, bool a2)
{
_BOOL4 v3; // w21
GameManager *v4; // x0
unsigned int v5; // w19
__int64 v6; // x0
bool v7; // cf
unsigned int v8; // w1
EditButtonBar *m_createButtonBar; // x0
_BOOL8 v10; // x1
v3 = a2;
v4 = GameManager::sharedState();
v5 = 0;
if ( !GameManager::getGameVariable(v4, "0046") )
v3 = 1;
while ( 1 )
{
v7 = v5 >= (unsigned int)cocos2d::CCArray::count(a1->m_uiItems);
v8 = v5++;
if ( v7 )
break;
v6 = cocos2d::CCArray::objectAtIndex(a1->m_uiItems, v8);
(*(void (__fastcall **)(__int64, _BOOL4))(*(_QWORD *)v6 + 328LL))(v6, v3);
}
if ( !a1->m_stickyControlsEnabled )
{
a1->m_unlinkBtn->setVisible(a1->m_unlinkBtn, 0);
a1->m_linkBtn->setVisible(a1->m_linkBtn, 0);
a1->m_enableLinkBtn->setVisible(a1->m_enableLinkBtn, 0);
}
m_createButtonBar = a1->m_createButtonBar;
if ( m_createButtonBar )
{
v10 = 0;
if ( v3 )
v10 = a1->m_selectedMode == 2;
m_createButtonBar->setVisible(m_createButtonBar, v10);
}
((void (*)(void))a1->m_editButtonBar->setVisible)();
if ( v3 )
{
((void (*)(void))a1->m_deleteMenu->setVisible)();
EditorUI::updateGroupIDLabel(a1);
}
else
{
a1->m_deleteMenu->setVisible(a1->m_deleteMenu, 0);
}
}