// // EditorUI::updateButtons from 0x485fe4 to 0x48644c (1128 bytes) // // 21 xrefs: // > EditorUI::onDeleteSelectedType @ 0x486512 // > EditorUI::onGroupSticky @ 0x486540 // > EditorUI::onUngroupSticky @ 0x48656c // > EditorUI::onStickyToggle @ 0x48659a // > EditorUI::init @ 0x48bdd4 // > EditorUI::clickOnPosition @ 0x48c7c4 // > EditorUI::onDeleteSelected @ 0x48c920 // > EditorUI::undoLastAction @ 0x48c93c // > EditorUI::redoLastAction @ 0x48c97e // > EditorUI::ccTouchEnded @ 0x6f0ea8 // > EditorUI::handleEditorAction @ 0x6f1eb4 // > EditorUI::onCopyState @ 0x6f28ce // > EditorUI::doPasteObjects @ 0x6f32bc // > EditorUI::doPasteInPlace @ 0x6f33ec // > EditorUI::onDuplicate @ 0x6f3a4e // > EditorUI::doCopyObjects @ 0x6f3be6 // > EditorUI::deselectAll @ 0x6f4212 // > EditorUI::updateSelectionUI @ 0x6f43d8 // > EditorUI::recreateButtonTabs @ 0x6f7ffe // > EditorUI::moveObjectCall @ 0x70ee0c // > EditorUI::updateControlsAfterAlign @ 0x70f052 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:49:25 +0000 // int __fastcall EditorUI::updateButtons(cocos2d::CCArray **this) { _BOOL4 v2; // r5 __int16 *v3; // r1 int v4; // r1 _BOOL4 hasAction; // r6 __int16 *v6; // r1 int v7; // r1 _DWORD *v8; // r0 __int16 *v9; // r3 __int16 *v10; // r1 int v11; // r1 _BOOL4 v12; // r6 __int16 *v13; // r1 int v14; // r1 __int16 *v15; // r1 int v16; // r1 _BOOL4 v17; // r5 __int16 *v18; // r1 int v19; // r1 _BOOL4 v20; // r5 __int16 *v21; // r1 int v22; // r1 _BOOL4 v23; // r5 __int16 *v24; // r1 int v25; // r1 GameManager *v26; // r0 int v27; // r0 _BOOL4 v28; // r5 __int16 *v29; // r1 int v30; // r1 __int16 *v31; // r1 int v32; // r1 int result; // r0 cocos2d::CCSpriteFrameCache *v34; // r5 void (__fastcall *v35)(cocos2d::CCSpriteFrameCache *, int); // r6 cocos2d::CCSpriteFrameCache *v36; // r0 const char *v37; // r1 int v38; // r0 int v39; // r1 int v40; // r5 int v41; // r6 __int16 *v42; // r1 int v43; // r1 int *v44; // r2 _BOOL4 v45; // r6 int v46; // r3 int v47; // r3 int v48; // r3 int *v49; // r3 int v50; // r1 int v51; // t1 __int16 *v52; // r1 int v53; // r1 EditorUI::toggleEditObjectButton(this); EditorUI::toggleDuplicateButton(this); EditorUI::updateDeleteMenu((EditorUI *)this); EditorUI::toggleSpecialEditButtons(this, 0); if ( *(this + 249) ) v2 = 1; else v2 = cocos2d::CCArray::count(*(this + 167)) != 0; *((_BYTE *)*(this + 176) + 320) = v2; if ( v2 ) v3 = word_BEBDD8; else v3 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 176) + 480))(*(this + 176), v3); if ( v2 ) v4 = 255; else v4 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 176) + 456))(*(this + 176), v4); hasAction = LevelEditorLayer::hasAction(*(this + 236), 1); *((_BYTE *)*(this + 189) + 320) = hasAction; if ( hasAction ) v6 = word_BEBDD8; else v6 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 189) + 480))(*(this + 189), v6); if ( hasAction ) v7 = 255; else v7 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 189) + 456))(*(this + 189), v7); (*(void (__fastcall **)(_DWORD, _BOOL4))(*(_DWORD *)*(this + 209) + 528))(*(this + 209), v2); v8 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 209) + 536))(*(this + 209)); if ( v2 ) v9 = word_BEBDD8; else v9 = (__int16 *)&byte_BEBE3C; ButtonSprite::setColor( v8, *(unsigned __int8 *)v9 | (*((unsigned __int8 *)v9 + 1) << 8) | (*((unsigned __int8 *)v9 + 2) << 16)); *((_BYTE *)*(this + 183) + 320) = v2; if ( v2 ) v10 = word_BEBDD8; else v10 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 183) + 480))(*(this + 183), v10); if ( v2 ) v11 = 255; else v11 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 183) + 456))(*(this + 183), v11); v12 = LevelEditorLayer::hasAction(*(this + 236), 0); *((_BYTE *)*(this + 190) + 320) = v12; if ( v12 ) v13 = word_BEBDD8; else v13 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 190) + 480))(*(this + 190), v13); if ( v12 ) v14 = 255; else v14 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 190) + 456))(*(this + 190), v14); *((_BYTE *)*(this + 192) + 320) = v2; if ( v2 ) v15 = word_BEBDD8; else v15 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 192) + 480))(*(this + 192), v15); if ( v2 ) v16 = 255; else v16 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 192) + 456))(*(this + 192), v16); v17 = *(this + 249) != nullptr; *((_BYTE *)*(this + 199) + 320) = v17; if ( v17 ) v18 = word_BEBDD8; else v18 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 199) + 480))(*(this + 199), v18); if ( v17 ) v19 = 255; else v19 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 199) + 456))(*(this + 199), v19); v20 = *(this + 249) != nullptr; if ( !*(this + 249) && cocos2d::CCArray::count(*(this + 167)) ) v20 = EditorUI::editorLayerForArray((EditorUI *)this, *(this + 167), 0) > 0 || EditorUI::editorLayerForArray((EditorUI *)this, *(this + 167), 1) > 0; *((_BYTE *)*(this + 202) + 320) = v20; if ( v20 ) v21 = word_BEBDD8; else v21 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 202) + 480))(*(this + 202), v21); if ( v20 ) v22 = 255; else v22 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 202) + 456))(*(this + 202), v22); v23 = *(this + 249) != nullptr; *((_BYTE *)*(this + 199) + 320) = v23; if ( v23 ) v24 = word_BEBDD8; else v24 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 199) + 480))(*(this + 199), v24); if ( v23 ) v25 = 255; else v25 = 175; v26 = (GameManager *)(*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 199) + 456))(*(this + 199), v25); v27 = GameManager::sharedState(v26); if ( LevelEditorLayer::canPasteState(*(LevelEditorLayer **)(v27 + 408)) ) { if ( *(this + 249) ) v28 = 1; else v28 = cocos2d::CCArray::count(*(this + 167)) != 0; } else { v28 = 0; } *((_BYTE *)*(this + 200) + 320) = v28; if ( v28 ) v29 = word_BEBDD8; else v29 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 200) + 480))(*(this + 200), v29); if ( v28 ) v30 = 255; else v30 = 175; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 200) + 456))(*(this + 200), v30); *((_BYTE *)*(this + 201) + 320) = v28; if ( v28 ) v31 = word_BEBDD8; else v31 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 201) + 480))(*(this + 201), v31); if ( v28 ) v32 = 255; else v32 = 175; result = (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 201) + 456))(*(this + 201), v32); if ( *((_BYTE *)this + 643) ) { v34 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 188) + 536))(*(this + 188)); v35 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v34 + 580); v36 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v34); if ( *((_BYTE *)this + 644) ) v37 = "gj_linkDisableBtn_001.png"; else v37 = "gj_linkEnableBtn_001.png"; v38 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v36, v37); v35(v34, v38); if ( *((_BYTE *)this + 644) ) v39 = 200; else v39 = 255; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 188) + 456))(*(this + 188), v39); if ( *((_BYTE *)this + 644) ) v40 = 75; else v40 = 175; if ( cocos2d::CCArray::count(*(this + 167)) ) v41 = *((unsigned __int8 *)this + 644) ^ 1; else v41 = 0; *((_BYTE *)*(this + 186) + 320) = v41; if ( v41 ) v42 = word_BEBDD8; else v42 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(*(_DWORD *)*(this + 186) + 480))(*(this + 186), v42); if ( v41 ) v43 = 255; else v43 = v40; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 186) + 456))(*(this + 186), v43); if ( !*((_BYTE *)this + 644) ) { v46 = (int)*(this + 249); if ( v46 ) { v45 = *(_DWORD *)(v46 + 740) > 0; goto LABEL_107; } if ( cocos2d::CCArray::count(*(this + 167)) ) { v47 = (int)*(this + 167); if ( v47 ) { v44 = *(int **)(v47 + 52); if ( *v44 ) { v48 = *v44 + 0x40000000; v44 = (int *)v44[3]; v49 = &v44[v48 - 1]; while ( v44 <= v49 ) { v51 = *v44++; v50 = v51; if ( !v51 ) break; if ( *(int *)(v50 + 740) > 0 ) { v45 = 1; goto LABEL_107; } } } } } } v45 = 0; LABEL_107: *((_BYTE *)*(this + 187) + 320) = v45; if ( v45 ) v52 = word_BEBDD8; else v52 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *, int *))(*(_DWORD *)*(this + 187) + 480))(*(this + 187), v52, v44); if ( v45 ) v53 = 255; else v53 = v40; return (*(int (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 187) + 456))(*(this + 187), v53); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source