// // EditorUI::updateEditColorButton from 0x483e28 to 0x483f12 (234 bytes) // // 3 xrefs: // > EditorUI::toggleEditObjectButton @ 0x483fac // > EditorUI::onEditColor @ 0x48429a // > EditorUI::colorSelectClosed @ 0x48454a // // 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 // int __fastcall EditorUI::updateEditColorButton(EditorUI *this) { _BOOL4 v2; // r5 __int16 *v3; // r1 int v4; // r1 int result; // r0 cocos2d::CCSpriteFrameCache *v6; // r5 void (__fastcall *v7)(cocos2d::CCSpriteFrameCache *, int); // r7 cocos2d::CCSpriteFrameCache *v8; // r0 int v9; // r0 int (*v10)(void); // r3 cocos2d::CCSpriteFrameCache *v11; // r5 void (__fastcall *v12)(cocos2d::CCSpriteFrameCache *, int); // r7 cocos2d::CCSpriteFrameCache *v13; // r0 int v14; // r0 ColorAction *v15; // [sp+0h] [bp-14h] BYREF ColorAction *v16; // [sp+4h] [bp-10h] BYREF EffectGameObject *v17; // [sp+8h] [bp-Ch] BYREF v2 = EditorUI::editColorButtonUsable(this); *(_BYTE *)(*((_DWORD *)this + 193) + 320) = v2; if ( v2 ) v3 = word_BEBDD8; else v3 = (__int16 *)&byte_BEBE3C; (*(void (__fastcall **)(_DWORD, __int16 *))(**((_DWORD **)this + 193) + 480))(*((_DWORD *)this + 193), v3); if ( v2 ) v4 = 255; else v4 = 175; result = (*(int (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 193) + 456))(*((_DWORD *)this + 193), v4); if ( v2 ) { if ( !*((_DWORD *)this + 256) && ((v15 = nullptr, v16 = nullptr, v17 = nullptr, EditorUI::getEditColorTargets(this, &v15, &v16, &v17), v15) || v16 || v17) ) { v11 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 193) + 536))(*((_DWORD *)this + 193)); v12 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v11 + 580); v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v11); v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, "GJ_editHSVBtn2_001.png"); v12(v11, v14); v10 = *(int (**)(void))(**((_DWORD **)this + 193) + 36); } else { v6 = (cocos2d::CCSpriteFrameCache *)(*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 193) + 536))(*((_DWORD *)this + 193)); v7 = *(void (__fastcall **)(cocos2d::CCSpriteFrameCache *, int))(*(_DWORD *)v6 + 580); v8 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v6); v9 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v8, "GJ_hsvBtn_001.png"); v7(v6, v9); v10 = *(int (**)(void))(**((_DWORD **)this + 193) + 36); } return v10(); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source