// // EditorUI::updateEditColorButton from 0x7c5980 to 0x7c5b2c (428 bytes) // // 6 xrefs: // > EditorUI::toggleEditObjectButton @ 0x7c5bd4 // > EditorUI::toggleEditObjectButton @ 0x7c5c34 // > EditorUI::onEditColor @ 0x7c60d4 // > EditorUI::onEditColor @ 0x7c60e8 // > EditorUI::colorSelectClosed @ 0x7c6604 // > @ 0x91900 // // 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:08 +0000 // __int64 __fastcall EditorUI::updateEditColorButton(EditorUI *this) { bool v2; // w0 void (*v3)(void); // x2 cocos2d::CCSpriteFrameCache **v5; // x21 void (__fastcall *v6)(cocos2d::CCSpriteFrameCache **, __int64); // x22 cocos2d::CCSpriteFrameCache *v7; // x0 __int64 v8; // x0 cocos2d::CCSpriteFrameCache **v9; // x21 void (__fastcall *v10)(cocos2d::CCSpriteFrameCache **, __int64); // x22 cocos2d::CCSpriteFrameCache *v11; // x0 __int64 v12; // x0 ColorAction *v13; // [xsp+30h] [xbp+30h] BYREF ColorAction *v14; // [xsp+38h] [xbp+38h] BYREF EffectGameObject *v15; // [xsp+40h] [xbp+40h] BYREF v2 = EditorUI::editColorButtonUsable(this); *(_BYTE *)(*((_QWORD *)this + 138) + 408LL) = v2; v3 = *(void (**)(void))(**((_QWORD **)this + 138) + 960LL); if ( v2 ) { v3(); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 138) + 912LL))(*((_QWORD *)this + 138), 0xFFFFFFFFLL); if ( !*((_QWORD *)this + 193) && ((v13 = nullptr, v14 = nullptr, v15 = nullptr, EditorUI::getEditColorTargets(this, &v13, &v14, &v15), v13) || v14 || v15) ) { v9 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 1072LL))(*((_QWORD *)this + 138)); v10 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v9 + 145); v11 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v9); v12 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v11, "GJ_editHSVBtn2_001.png"); v10(v9, v12); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 138) + 72LL))(*((_QWORD *)this + 138), 0); } else { v5 = (cocos2d::CCSpriteFrameCache **)(*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 138) + 1072LL))(*((_QWORD *)this + 138)); v6 = *((void (__fastcall **)(cocos2d::CCSpriteFrameCache **, __int64))*v5 + 145); v7 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(*v5); v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v7, "GJ_hsvBtn_001.png"); v6(v5, v8); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 138) + 72LL))(*((_QWORD *)this + 138), 1); } } else { v3(); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 138) + 912LL))(*((_QWORD *)this + 138), 4294967215LL); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source