//
// EditorUI::showLiveColorSelectForMode from 0x1003f5c18 to 0x1003f5c98 (128 bytes)
//
// 2 xrefs:
// > LevelSettingsLayer::onLiveEdit @ 0x10017b474
// > EditorUI::showLiveColorSelectForModeSpecial @ 0x1003f5bcc
//
// This function is hookable on this platform!
//
// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA
// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings
//
void __fastcall EditorUI::showLiveColorSelectForMode(EditorUI *a1, int a2)
{
ColorSelectLiveOverlay *m_colorOverlay; // x0
HSVLiveOverlay *m_hsvOverlay; // x0
GameManager *v6; // x0
ColorAction *ColorAction; // x0
ColorSelectLiveOverlay *v8; // x0
m_colorOverlay = a1->m_colorOverlay;
if ( m_colorOverlay )
{
ColorSelectLiveOverlay::closeColorSelect(m_colorOverlay, nullptr);
a1->m_colorOverlay = nullptr;
}
m_hsvOverlay = a1->m_hsvOverlay;
if ( m_hsvOverlay )
{
HSVLiveOverlay::closeColorSelect(m_hsvOverlay, nullptr);
a1->m_hsvOverlay = nullptr;
}
v6 = GameManager::sharedState();
ColorAction = GJEffectManager::getColorAction(v6->m_levelEditorLayer->m_levelSettings->m_effectManager, a2);
v8 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr);
a1->m_colorOverlay = v8;
v8->m_delegate = &a1->ColorSelectDelegate;
v8->m_scene = a1;
((void (__fastcall *)(ColorSelectLiveOverlay *))v8->show)(v8);
}