//
// EditorUI::showLiveColorSelectForMode from 0x100049fb0 to 0x10004a051 (161 bytes)
//
// 1 xrefs:
// > LevelSettingsLayer::onLiveEdit @ 0x10026dfa2
//
// 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; // rdi
HSVLiveOverlay *m_hsvOverlay; // rdi
GameManager *v5; // rax
ColorAction *ColorAction; // rax
ColorSelectLiveOverlay *v7; // rax
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;
}
v5 = GameManager::sharedState();
ColorAction = GJEffectManager::getColorAction(v5->m_levelEditorLayer->m_levelSettings->m_effectManager, a2);
v7 = ColorSelectLiveOverlay::createWithActions(ColorAction, nullptr);
a1->m_colorOverlay = v7;
v7->m_delegate = &a1->ColorSelectDelegate;
v7->m_scene = a1;
((void (__fastcall *)(ColorSelectLiveOverlay *))v7->show)(v7);
}