//
// LevelInfoLayer::FLAlert_Clicked from 0x6d9648 to 0x6d9790 (328 bytes)
//
// 3 xrefs:
// > `non-virtual thunk to'LevelInfoLayer::FLAlert_Clicked @ 0x6d9794
// > ??> @ 0xaf770
// > ??> @ 0x115b6f0
//
// 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 LevelInfoLayer::FLAlert_Clicked(LevelInfoLayer *a1, FLAlertLayer *a2, bool a3)
{
_BOOL4 v4; // w19
GJGameLevel *v5; // x19
GameLevelManager *v6; // x0
GJGameLevel *m_level; // x19
GameLevelManager *v8; // x0
v4 = a3;
switch ( a2->getTag(a2) )
{
case 4:
if ( v4 )
LevelInfoLayer::onDelete(a1, nullptr);
break;
case 5:
if ( v4 )
LevelInfoLayer::onOwnerDelete(a1, nullptr);
break;
case 6:
if ( v4 )
LevelInfoLayer::onClone(a1, nullptr);
break;
case 7:
LevelInfoLayer::onRate(a1, nullptr);
break;
case 8:
LevelInfoLayer::onRateStars(a1, nullptr);
break;
case 9:
if ( v4 )
{
a1->m_level->m_showedSongWarning = 1;
LevelInfoLayer::onPlay(a1, nullptr);
}
break;
case 0xA:
if ( v4 )
{
a1->m_level->m_highObjectsEnabled = 1;
LevelInfoLayer::onPlay(a1, nullptr);
}
break;
case 0xB:
if ( v4 )
{
m_level = a1->m_level;
if ( m_level )
{
v8 = GameLevelManager::sharedState();
m_level->m_levelIndex = GameLevelManager::getHighestLevelOrder(v8) + 1;
}
}
break;
case 0xC:
if ( v4 )
{
v5 = a1->m_level;
if ( v5 )
{
v6 = GameLevelManager::sharedState();
v5->m_levelIndex = GameLevelManager::getLowestLevelOrder(v6) - 1;
}
}
break;
default:
return;
}
}