// // EditorUI::updateButtons from 0x7c8080 to 0x7c88a4 (2084 bytes) // // 23 xrefs: // > EditorUI::onDeleteSelectedType @ 0x7c8920 // > EditorUI::onGroupSticky @ 0x7c8978 // > EditorUI::onUngroupSticky @ 0x7c89c4 // > EditorUI::onStickyToggle @ 0x7c8a08 // > EditorUI::init @ 0x7d0e1c // > EditorUI::clickOnPosition @ 0x7d1c28 // > EditorUI::onDeleteSelected @ 0x7d1d5c // > EditorUI::onDeleteSelected @ 0x7d1d98 // > EditorUI::undoLastAction @ 0x7d1ed4 // > EditorUI::redoLastAction @ 0x7d1f40 // > EditorUI::ccTouchEnded @ 0xbd6384 // > EditorUI::handleEditorAction @ 0xbd7f50 // > EditorUI::onCopyState @ 0xbd8c04 // > EditorUI::doPasteObjects @ 0xbda00c // > EditorUI::doPasteInPlace @ 0xbda198 // > EditorUI::onDuplicate @ 0xbdaae0 // > EditorUI::doCopyObjects @ 0xbdaca8 // > EditorUI::deselectAll @ 0xbdc67c // > EditorUI::updateSelectionUI @ 0xbdc92c // > EditorUI::recreateButtonTabs @ 0xbe2148 // > EditorUI::moveObjectCall @ 0xc025d0 // > EditorUI::updateControlsAfterAlign @ 0xc02aac // > @ 0x4cfc0 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:54:09 +0000 // __int64 __fastcall EditorUI::updateButtons(EditorUI *this) { unsigned int v2; // w20 void (*v3)(void); // x2 _QWORD *v4; // x0 _BOOL4 v5; // w1 void (*v6)(void); // x2 void (*v7)(void); // x2 GameManager *v8; // x0 __int64 v9; // x0 __int64 result; // x0 cocos2d::CCSpriteFrameCache **v11; // x20 void (__fastcall *v12)(cocos2d::CCSpriteFrameCache **, __int64); // x22 cocos2d::CCSpriteFrameCache *v13; // x0 const char *v14; // x1 __int64 v15; // x0 __int64 v16; // x1 unsigned int v17; // w20 __int64 v18; // x0 _BOOL4 v19; // w1 void (*v20)(void); // x2 __int64 v21; // x0 int *v22; // x0 unsigned int v23; // w1 unsigned __int64 v24; // x0 unsigned __int64 v25; // x2 EditorUI::toggleEditObjectButton(this); EditorUI::toggleDuplicateButton(this); EditorUI::updateDeleteMenu(this); EditorUI::toggleSpecialEditButtons((cocos2d::CCArray **)this, 0); if ( *((_QWORD *)this + 187) || (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v2 = 1; *(_BYTE *)(*((_QWORD *)this + 121) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 121) + 960LL))( *((_QWORD *)this + 121), &qword_1142200); v3 = *(void (**)(void))(**((_QWORD **)this + 121) + 912LL); } else { v2 = 0; *(_BYTE *)(*((_QWORD *)this + 121) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 121) + 960LL))( *((_QWORD *)this + 121), &qword_1142270); v3 = *(void (**)(void))(**((_QWORD **)this + 121) + 912LL); } v3(); *(_BYTE *)(*((_QWORD *)this + 134) + 408LL) = LevelEditorLayer::hasAction(*((cocos2d::CCArray ***)this + 180), 1); (*(void (**)(void))(**((_QWORD **)this + 134) + 960LL))(); (*(void (**)(void))(**((_QWORD **)this + 134) + 912LL))(); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 154) + 1056LL))(*((_QWORD *)this + 154), v2); v4 = (_QWORD *)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 154) + 1072LL))(*((_QWORD *)this + 154)); if ( v2 ) { ButtonSprite::setColor(v4, 0xFFFFFF); *(_BYTE *)(*((_QWORD *)this + 128) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 128) + 960LL))( *((_QWORD *)this + 128), &qword_1142200); } else { ButtonSprite::setColor(v4, 10921638); *(_BYTE *)(*((_QWORD *)this + 128) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 128) + 960LL))( *((_QWORD *)this + 128), &qword_1142270); } (*(void (**)(void))(**((_QWORD **)this + 128) + 912LL))(); *(_BYTE *)(*((_QWORD *)this + 135) + 408LL) = LevelEditorLayer::hasAction(*((cocos2d::CCArray ***)this + 180), 0); (*(void (**)(void))(**((_QWORD **)this + 135) + 960LL))(); (*(void (**)(void))(**((_QWORD **)this + 135) + 912LL))(); *(_BYTE *)(*((_QWORD *)this + 137) + 408LL) = v2; (*(void (**)(void))(**((_QWORD **)this + 137) + 960LL))(); (*(void (**)(void))(**((_QWORD **)this + 137) + 912LL))(); v5 = *((_QWORD *)this + 187) != 0; *(_BYTE *)(*((_QWORD *)this + 144) + 408LL) = v5; v6 = *(void (**)(void))(**((_QWORD **)this + 144) + 960LL); if ( v5 ) { v6(); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 144) + 912LL))(*((_QWORD *)this + 144), 255); if ( *((_QWORD *)this + 187) ) goto LABEL_7; } else { v6(); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 144) + 912LL))(*((_QWORD *)this + 144), 175); if ( *((_QWORD *)this + 187) ) goto LABEL_7; } if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) || (int)EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 112), 0) <= 0 && (int)EditorUI::editorLayerForArray(this, *((cocos2d::CCArray **)this + 112), 1u) <= 0 ) { *(_BYTE *)(*((_QWORD *)this + 147) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 147) + 960LL))( *((_QWORD *)this + 147), &qword_1142270); v7 = *(void (**)(void))(**((_QWORD **)this + 147) + 912LL); goto LABEL_8; } LABEL_7: *(_BYTE *)(*((_QWORD *)this + 147) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 147) + 960LL))( *((_QWORD *)this + 147), &qword_1142200); v7 = *(void (**)(void))(**((_QWORD **)this + 147) + 912LL); LABEL_8: v7(); *(_BYTE *)(*((_QWORD *)this + 144) + 408LL) = *((_QWORD *)this + 187) != 0; (*(void (**)(void))(**((_QWORD **)this + 144) + 960LL))(); v8 = (GameManager *)(*(__int64 (**)(void))(**((_QWORD **)this + 144) + 912LL))(); v9 = GameManager::sharedState(v8); if ( LevelEditorLayer::canPasteState(*(LevelEditorLayer **)(v9 + 552)) && (*((_QWORD *)this + 187) || (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112))) ) { *(_BYTE *)(*((_QWORD *)this + 145) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 145) + 960LL))( *((_QWORD *)this + 145), &qword_1142200); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 145) + 912LL))(*((_QWORD *)this + 145), 0xFFFFFFFFLL); *(_BYTE *)(*((_QWORD *)this + 146) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 146) + 960LL))( *((_QWORD *)this + 146), &qword_1142200); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 146) + 912LL))(*((_QWORD *)this + 146), 255); result = *((unsigned __int8 *)this + 867); if ( *((_BYTE *)this + 867) ) goto LABEL_14; } else { *(_BYTE *)(*((_QWORD *)this + 145) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 145) + 960LL))( *((_QWORD *)this + 145), &qword_1142270); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 145) + 912LL))(*((_QWORD *)this + 145), 4294967215LL); *(_BYTE *)(*((_QWORD *)this + 146) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 146) + 960LL))( *((_QWORD *)this + 146), &qword_1142270); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 146) + 912LL))(*((_QWORD *)this + 146), 175); result = *((unsigned __int8 *)this + 867); if ( *((_BYTE *)this + 867) ) { LABEL_14: v11 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 133) + 1072LL))(*((_QWORD *)this + 133)); v12 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v11 + 145); v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v11); if ( *((_BYTE *)this + 868) ) v14 = "gj_linkDisableBtn_001.png"; else v14 = "gj_linkEnableBtn_001.png"; v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, v14); v12(v11, v15); if ( *((_BYTE *)this + 868) ) v16 = 200; else v16 = 255; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 133) + 912LL))(*((_QWORD *)this + 133), v16); if ( *((_BYTE *)this + 868) ) v17 = 75; else v17 = 175; if ( !(unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) || *((_BYTE *)this + 868) ) { *(_BYTE *)(*((_QWORD *)this + 131) + 408LL) = 0; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 131) + 960LL))( *((_QWORD *)this + 131), &qword_1142270); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 131) + 912LL))(*((_QWORD *)this + 131), v17); if ( *((_BYTE *)this + 868) ) goto LABEL_36; } else { *(_BYTE *)(*((_QWORD *)this + 131) + 408LL) = 1; (*(void (__fastcall **)(_QWORD, __int64 *))(**((_QWORD **)this + 131) + 960LL))( *((_QWORD *)this + 131), &qword_1142200); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 131) + 912LL))(*((_QWORD *)this + 131), 255); if ( *((_BYTE *)this + 868) ) goto LABEL_36; } v18 = *((_QWORD *)this + 187); if ( v18 ) { v19 = *(_DWORD *)(v18 + 872) > 0; *(_BYTE *)(*((_QWORD *)this + 132) + 408LL) = v19; v20 = *(void (**)(void))(**((_QWORD **)this + 132) + 960LL); if ( v19 ) { LABEL_27: v20(); return (*(__int64 (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 132) + 912LL))( *((_QWORD *)this + 132), 255); } goto LABEL_37; } if ( (unsigned int)cocos2d::CCArray::count(*((cocos2d::CCArray **)this + 112)) ) { v21 = *((_QWORD *)this + 112); if ( v21 ) { v22 = *(int **)(v21 + 56); v23 = *v22; if ( *v22 ) { v24 = *((_QWORD *)v22 + 2); v25 = v24 + 8LL * v23 - 8; if ( v24 <= v25 ) { while ( *(_QWORD *)v24 ) { if ( *(int *)(*(_QWORD *)v24 + 872LL) > 0 ) { *(_BYTE *)(*((_QWORD *)this + 132) + 408LL) = 1; v20 = *(void (**)(void))(**((_QWORD **)this + 132) + 960LL); goto LABEL_27; } v24 += 8LL; if ( v25 < v24 ) break; } } } } } LABEL_36: *(_BYTE *)(*((_QWORD *)this + 132) + 408LL) = 0; v20 = *(void (**)(void))(**((_QWORD **)this + 132) + 960LL); LABEL_37: v20(); return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 132) + 912LL))( *((_QWORD *)this + 132), v17); } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source