// // EditorUI::updateEditColorButton from 0x100018c20 to 0x100018d98 (376 bytes) // // 4 xrefs: // > EditorUI::onEditColor @ 0x1000093cd // > EditorUI::updateButtons @ 0x10000ae14 // > EditorUI::toggleEditObjectButton @ 0x10000bf52 // > EditorUI::colorSelectClosed_1 @ 0x100019ede // // 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 12:18:55 +0000 // __int64 __fastcall EditorUI::updateEditColorButton(_QWORD *a1) { _QWORD *v2; // r14 _BYTE *v3; // rdi int v4; // eax void *v5; // rsi char v6; // r15 __int64 v7; // rdi __int64 (__fastcall *v8)(__int64, __int64); // rax __int64 v9; // rbx __int64 v10; // rax __int64 v11; // rax __int64 v13; // rbx __int64 v14; // rax __int64 v15; // rax __int64 v16; // [rsp+0h] [rbp-30h] BYREF __int64 v17; // [rsp+8h] [rbp-28h] BYREF _QWORD v18[4]; // [rsp+10h] [rbp-20h] BYREF if ( a1[187] ) { v2 = a1 + 138; v3 = (_BYTE *)a1[138]; v3[408] = 1; LABEL_4: v5 = &unk_100A038D0; v6 = 1; goto LABEL_5; } v4 = sub_1007FEF90(a1[112]); v2 = a1 + 138; v3 = (_BYTE *)a1[138]; v3[408] = v4 != 0; if ( v4 ) goto LABEL_4; v6 = 0; v5 = &unk_100A038D3; LABEL_5: (*(void (__fastcall **)(_BYTE *, void *))(*(_QWORD *)v3 + 960LL))(v3, v5); v7 = *v2; v8 = *(__int64 (__fastcall **)(__int64, __int64))(*(_QWORD *)*v2 + 912LL); if ( !v6 ) return v8(v7, 175); v8(v7, 255); if ( !a1[193] && ((v16 = 0, v17 = 0, v18[0] = 0, EditorUI::getEditColorTargets(a1, &v16, &v17, v18), v16) || v17 || v18[0]) ) { v13 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 1072LL))(*v2); v14 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v15 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v14, "GJ_editHSVBtn2_001.png"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v13 + 1160LL))(v13, v15); return (*(__int64 (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*v2 + 72LL))(*v2, 0); } else { v9 = (*(__int64 (__fastcall **)(_QWORD))(*(_QWORD *)*v2 + 1072LL))(*v2); v10 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(); v11 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v10, "GJ_hsvBtn_001.png"); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v9 + 1160LL))(v9, v11); return (*(__int64 (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*v2 + 72LL))(*v2, 1); } }