// // EditorUI::editColor from 0x1401be180 to 0x1401be2c9 (329 bytes) // // 4 xrefs: // > EditorUI::onEditColor @ 0x1401bdecb // > EditorUI::handleEditorAction @ 0x1401c37b8 // > EditorUI::checkLiveColorSelect @ 0x1401c96fb // > @ 0x14091a4b0 // // 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:02 +0000 // unsigned int __fastcall EditorUI::editColor(__int64 a1) { unsigned int v1; // ebx unsigned int result; // eax __int64 v4; // rsi __int64 v5; // rdx __int64 v6; // r8 __int64 v7; // rcx _QWORD *v8; // rax _QWORD *v9; // rcx __int64 v10; // rax __int64 v11; // rcx struct cocos2d::CCObject *v12; // rax __int64 v13; // [rsp+48h] [rbp+10h] BYREF __int64 v14; // [rsp+50h] [rbp+18h] BYREF __int64 v15; // [rsp+58h] [rbp+20h] BYREF v1 = 0; v14 = 0; v13 = 0; v15 = 0; result = EditorUI::getEditColorTargets(a1, &v14, &v13, &v15); v4 = v15; if ( v14 || v13 || v15 ) { EditorUI::closeLiveColorSelect(a1); EditorUI::closeLiveHSVSelect(a1); *(_QWORD *)(a1 + 1616) = 0; if ( v4 ) { v5 = 0; v6 = v4; v7 = 0; } else { v5 = v13; v6 = 0; v7 = v14; } v8 = ColorSelectLiveOverlay::create(v7, v5, v6); *(_QWORD *)(a1 + 1616) = v8; v9 = v8; v10 = a1 + 416; if ( !a1 ) v10 = 0; v9[92] = v10; *(_QWORD *)(*(_QWORD *)(a1 + 1616) + 568LL) = a1; result = (*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 1616) + 1064LL))(*(_QWORD *)(a1 + 1616)); if ( !v4 ) { v11 = *(_QWORD *)(a1 + 1568); if ( v11 ) { *(_BYTE *)(v11 + 1141) = 0; return GameObject::updateObjectEditorColor(v11); } else { result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); if ( result ) { result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); if ( result ) { do { v12 = cocos2d::CCArray::objectAtIndex(*(cocos2d::CCArray **)(a1 + 944), v1); *((_BYTE *)v12 + 1141) = 0; GameObject::updateObjectEditorColor(v12); ++v1; result = cocos2d::CCArray::count(*(cocos2d::CCArray **)(a1 + 944)); } while ( v1 < result ); } } } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source