// // EditorUI::editColor from 0x483ff0 to 0x4840b0 (192 bytes) // // 2 xrefs: // > EditorUI::onEditColor @ 0x484290 // > EditorUI::checkLiveColorSelect @ 0x6f4450 // // 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:24 +0000 // GameManager *__fastcall EditorUI::editColor(cocos2d::CCArray **this, int a2, int a3, EffectGameObject *a4) { GameManager *result; // r0 EffectGameObject *v6; // r1 ColorAction *v7; // r2 ColorSelectLiveOverlay *v8; // r0 cocos2d::CCArray *v9; // r0 int v10; // r1 unsigned int v11; // r5 GameObject *v12; // r0 int v13; // r1 ColorAction *v14; // [sp+0h] [bp-10h] BYREF ColorAction *v15; // [sp+4h] [bp-Ch] BYREF EffectGameObject *v16[2]; // [sp+8h] [bp-8h] BYREF v16[1] = a4; v14 = nullptr; v15 = nullptr; v16[0] = nullptr; result = EditorUI::getEditColorTargets((EditorUI *)this, &v14, &v15, v16); if ( v14 || v15 || v16[0] ) { EditorUI::closeLiveColorSelect((EditorUI *)this); EditorUI::closeLiveHSVSelect((EditorUI *)this); v8 = v16[0]; *(this + 256) = nullptr; v9 = (cocos2d::CCArray *)(v8 ? ColorSelectLiveOverlay::createWithObject(v8, v6) : ColorSelectLiveOverlay::createWithActions(v14, v15, v7)); *(this + 256) = v9; *((_DWORD *)*(this + 256) + 142) = this + 80; *((_DWORD *)*(this + 256) + 113) = this; result = (GameManager *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 256) + 656))(*(this + 256)); if ( !v16[0] ) { v11 = (unsigned int)*(this + 249); if ( v11 ) { return (GameManager *)GameObject::deselectObject(*(this + 249), v10); } else { result = (GameManager *)cocos2d::CCArray::count(*(this + 167)); if ( result ) { while ( 1 ) { result = (GameManager *)cocos2d::CCArray::count(*(this + 167)); if ( v11 >= (unsigned int)result ) break; v12 = (GameObject *)cocos2d::CCArray::objectAtIndex(*(this + 167), v11++); GameObject::deselectObject(v12, v13); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source