// // EditorUI::updateEditColorButton from 0x1401bdd10 to 0x1401bde7f (367 bytes) // // 7 xrefs: // > EditorUI::toggleEditObjectButton @ 0x1401bb040 // > EditorUI::onEditColor @ 0x1401bdec6 // > EditorUI::onEditColor @ 0x1401bded8 // > EditorUI::colorSelectClosed @ 0x1401bedbf // > EditorUI::handleEditorAction @ 0x1401c37ac // > EditorUI::handleEditorAction @ 0x1401c37c0 // > @ 0x14091a48c // // This function is hookable on this platform (idp: pc, 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 11:28:01 +0000 // __int64 __fastcall EditorUI::updateEditColorButton(__int64 a1) { bool v2; // di _QWORD *v3; // rsi __int16 *v4; // rdx __int64 v5; // rdx __int64 result; // rax __int64 *v7; // rdi __int64 v8; // rbx cocos2d::CCSpriteFrameCache *v9; // rax struct cocos2d::CCSpriteFrame *v10; // rax __int64 *v11; // rdi __int64 v12; // rbx cocos2d::CCSpriteFrameCache *v13; // rax struct cocos2d::CCSpriteFrame *v14; // rax __int64 v15; // [rsp+40h] [rbp+8h] BYREF __int64 v16; // [rsp+48h] [rbp+10h] BYREF __int64 v17; // [rsp+50h] [rbp+18h] BYREF v2 = *(_QWORD *)(a1 + 1568) || cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); v3 = (_QWORD *)(a1 + 1152); v4 = &word_140703290; *(_BYTE *)(*(_QWORD *)(a1 + 1152) + 408LL) = v2; if ( v2 ) v4 = &word_14070329C; (**(void (__fastcall ***)(__int64, __int16 *))(*(_QWORD *)(a1 + 1152) + 320LL))(*(_QWORD *)(a1 + 1152) + 320LL, v4); v5 = 175; if ( v2 ) v5 = 255; result = (*(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)(*v3 + 320LL) + 40LL))(*v3 + 320LL, v5); if ( v2 ) { if ( !*(_QWORD *)(a1 + 1616) && ((v15 = 0, v16 = 0, v17 = 0, EditorUI::getEditColorTargets(a1, &v15, &v16, &v17), v15) || v16 || v17) ) { v11 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 952LL))(*v3); v12 = *v11; v13 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v14 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v13, "GJ_editHSVBtn2_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v12 + 1008))(v11, v14); return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v3 + 64LL))(*v3, 0); } else { v7 = (__int64 *)(*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v3 + 952LL))(*v3); v8 = *v7; v9 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v10 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v9, "GJ_hsvBtn_001.png"); (*(void (__fastcall **)(__int64 *, struct cocos2d::CCSpriteFrame *))(v8 + 1008))(v7, v10); return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v3 + 64LL))(*v3, 1); } } return result; }