//
// LevelListLayer::FLAlert_Clicked from 0x10035fe90 to 0x10035ffa7 (279 bytes)
//
// 2 xrefs:
// > sub_100360250 @ 0x10036025c
// > ??> @ 0x100918690
//
// 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 LevelListLayer::FLAlert_Clicked(LevelListLayer *a1, FLAlertLayer *a2, bool a3)
{
int v4; // eax
GameLevelManager *v5; // rax
GameLevelManager *v6; // rax
v4 = ((__int64 (__fastcall *)(FLAlertLayer *))a2->getTag)(a2);
switch ( v4 )
{
case 1005:
if ( a3 )
LevelListLayer::cloneList(a1);
break;
case 1004:
if ( a3 && !a1->m_exiting )
{
GameLevelManager::sharedState()->m_levelListDeleteDelegate = &a1->LevelListDeleteDelegate;
v6 = GameLevelManager::sharedState();
GameLevelManager::deleteServerLevelList(v6, a1->m_levelList->m_listID);
((void (__fastcall *)(LoadingCircle *, __int64))a1->m_circle->setVisible)(a1->m_circle, 1);
}
break;
case 1001:
if ( a3 )
{
((void (__fastcall *)(cocos2d::CCMenu *, _QWORD))a1->m_buttonMenu->setEnabled)(a1->m_buttonMenu, 0);
v5 = GameLevelManager::sharedState();
GameLevelManager::deleteLevelList(v5, a1->m_levelList);
((void (__fastcall *)(LevelListLayer *, _QWORD))a1->onBack)(a1, 0);
a1->m_exiting = 1;
}
break;
default:
LevelBrowserLayer::FLAlert_Clicked(a1, a2, a3);
break;
}
}