//
// EditorUI::showLiveColorSelectForMode from 0x100019cc0 to 0x100019d61 (161 bytes)
//
// 1 xrefs:
// > LevelSettingsLayer::onLiveEdit @ 0x100257f22
//
// 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::showLiveColorSelectForMode(__int64 a1, __int64 a2, __int64 a3)
{
unsigned int v3; // r14d
__int64 v5; // rdi
__int64 v6; // rdi
__int64 v7; // rax
__int64 ColorAction; // rax
_QWORD *v9; // rax
v3 = a2;
v5 = *(_QWORD *)(a1 + 1544);
if ( v5 )
{
a2 = 0;
ColorSelectLiveOverlay::closeColorSelect(v5, 0);
*(_QWORD *)(a1 + 1544) = 0;
}
v6 = *(_QWORD *)(a1 + 1552);
if ( v6 )
{
a2 = 0;
HSVLiveOverlay::closeColorSelect(v6, 0);
*(_QWORD *)(a1 + 1552) = 0;
}
v7 = GameManager::sharedState(v6, a2, a3);
ColorAction = GJEffectManager::getColorAction(*(_QWORD *)(*(_QWORD *)(*(_QWORD *)(v7 + 552) + 3272LL) + 320LL), v3);
v9 = (_QWORD *)ColorSelectLiveOverlay::createWithActions(ColorAction, 0);
*(_QWORD *)(a1 + 1544) = v9;
v9[92] = a1 + 416;
v9[71] = a1;
return (*(__int64 (__fastcall **)(_QWORD *))(*v9 + 1312LL))(v9);
}