// // EditorUI::toggleMode from 0x1003e435c to 0x1003e4400 (164 bytes) // // 4 xrefs: // > EditorUI::init @ 0x1003c6008 // > EditorUI::onPlaytest @ 0x1003c78dc // > EditorUI::keyDown @ 0x1003fa034 // > EditorUI::init @ 0x1003c5274 // // 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::toggleMode(EditorUI *a1, cocos2d::CCObject *a2) { int v3; // w0 unsigned int v4; // w8 const char *v5; // x20 __int64 v6; // x0 __int64 v7; // x19 cocos2d::CCSpriteFrameCache *v8; // x0 cocos2d::CCSpriteFrame *v9; // x1 v3 = ((__int64 (__fastcall *)(cocos2d::CCObject *))a2->getTag)(a2); if ( a1->m_selectedMode != v3 ) { a1->m_selectedMode = v3; EditorUI::resetUI(a1); v4 = a1->m_selectedMode - 1; if ( v4 <= 2 ) { v5 = off_1008159A8[v4]; v6 = *((_QWORD *)&a1->m_deleteModeBtn + v4); v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 1056LL))(v6); v8 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, v5); (*(void (__fastcall **)(__int64, cocos2d::CCSpriteFrame *))(*(_QWORD *)v7 + 1144LL))(v7, v9); } } }