// // EditorUI::showUI from 0x140111900 to 0x140111a9b (411 bytes) // // 6 xrefs: // > EditorUI::onPause @ 0x1400e1a2a // > EditorUI::onPlaytest @ 0x14011247b // > EditorUI::onStopPlaytest @ 0x14011253b // > EditorUI::playtestStopped @ 0x140112589 // > EditorUI::keyDown @ 0x140126732 // > @ 0x1406c8fb8 // // 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 // // Hidden C++ exception states: #wind=1 void EditorUI::showUI(EditorUI *a1, bool a2) { GameManager *v4; // rcx bool v5; // si unsigned int i; // edi _BOOL8 v7; // rdx struct cocos2d::CCObject *v8; // rax EditButtonBar *m_createButtonBar; // rcx int *p_m_selectedMode; // rdi _BOOL8 v11; // rdx void *v12; // [rsp+30h] [rbp+8h] v4 = (GameManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v12 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v12); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v4 = (GameManager *)qword_1406C2ED8; } v5 = 1; if ( GameManager::getGameVariable(v4, "0046") ) v5 = a2; for ( i = 0; i < cocos2d::CCArray::count(a1->m_uiItems); ++i ) { v8 = cocos2d::CCArray::objectAtIndex(a1->m_uiItems, i); ((void (__fastcall *)(struct cocos2d::CCObject *, bool))v8->__vftable[4].update)(v8, v5); } 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; p_m_selectedMode = &a1->m_selectedMode; if ( m_createButtonBar ) { if ( v5 && *p_m_selectedMode == 2 ) LOBYTE(v7) = 1; else v7 = 0; m_createButtonBar->setVisible(m_createButtonBar, v7); } if ( v5 && *p_m_selectedMode == 3 ) { LOBYTE(v7) = 1; a1->m_editButtonBar->setVisible(a1->m_editButtonBar, v7); } else { a1->m_editButtonBar->setVisible(a1->m_editButtonBar, 0); if ( !v5 ) goto LABEL_21; } if ( *p_m_selectedMode != 1 ) { LABEL_21: a1->m_deleteMenu->setVisible(a1->m_deleteMenu, 0); if ( !v5 ) return; goto LABEL_22; } LOBYTE(v11) = 1; a1->m_deleteMenu->setVisible(a1->m_deleteMenu, v11); LABEL_22: EditorUI::updateGroupIDLabel(a1); }
GD Web Decomp Icon

GD Web Decomp

Raw Source