//
// LevelBrowserLayer::onInfo from 0x3ba5cc to 0x3ba776 (426 bytes)
//
// 0 xrefs:
//
// 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 LevelBrowserLayer::onInfo(LevelBrowserLayer *a1, cocos2d::CCObject *a2)
{
GJSearchObject *m_searchObject; // r3
char *v4; // r1
SearchType m_searchType; // r3
int v6; // r10
int v7; // r3
FLAlertLayer *v8; // r8
int v9; // [sp+Ch] [bp-14h] BYREF
char *v10; // [sp+10h] [bp-10h] BYREF
int v11; // [sp+14h] [bp-Ch] BYREF
_BYTE v12[4]; // [sp+18h] [bp-8h] BYREF
sub_776584((int)&v9, "Info");
sub_776584(
(int)&v10,
"Green users are unregistered.\n"
"Gold users are unique registered.\n"
"Blue songs are official.\n"
"Purple songs are custom.");
sub_776584((int)&v11, (char *)&unk_939830);
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
{
if ( m_searchObject->m_searchMode == 1 )
{
sub_7753D4((int)&v9, "Lists");
sub_7753D4(
(int)&v10,
"A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of "
"the list.\n"
"Usernames are gold for registered users and green for unregistered users. A song is blue"
" if it is official and pink if it is custom.");
if ( a1->m_searchObject->m_searchType != (Recent|MostLiked) )
goto LABEL_17;
sub_7753D4((int)&v9, "Top Lists");
v4 = "These lists have been rated by RobTop. The rewards for each one are also decided by him and are varia"
"ble from list to list. Note that rated lists can only be Featured and do not reward Creator Points.";
goto LABEL_16;
}
sub_7753D4((int)&v9, "Levels");
sub_7753D4(
(int)&v10,
"A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set by "
"community votes on each level's page. This is also how Demon difficulties are decided.\n"
"Usernames are gold for registered users and green for unregistered users. A song is blue i"
"f it is official and pink if it is custom.");
m_searchType = a1->m_searchObject->m_searchType;
if ( m_searchType == (Sends|Downloaded) )
{
sub_7753D4((int)&v9, "Map Packs");
v4 = "Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed, they"
" reward Stars and Secret Coins.";
goto LABEL_16;
}
if ( (unsigned int)m_searchType <= (Sends|Downloaded) )
{
if ( m_searchType != (Recent|MostLiked) )
goto LABEL_17;
sub_7753D4((int)&v11, "Info");
sub_7753D4((int)&v9, "Featured");
v4 = "Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face indic"
"ates how much he likes a specific level. In order of increasing quality:\n"
"Featured, Epic, Legendary, and Mythic.";
LABEL_16:
sub_7753D4((int)&v10, v4);
goto LABEL_17;
}
if ( m_searchType == FeaturedLite )
{
sub_7753D4((int)&v9, "Weekly Levels");
v4 = "New levels are released every week.\nCheck back later for more updates!";
goto LABEL_16;
}
if ( m_searchType == (FeaturedLite|Downloaded) )
{
sub_7753D4((int)&v9, "Bonus Levels");
v4 = "New levels are released from time to time.\nCheck back later for more updates!";
goto LABEL_16;
}
}
LABEL_17:
v6 = v9;
sub_776584((int)v12, v10);
v7 = v11;
if ( !*(_DWORD *)(v11 - 12) )
v7 = 0;
v8 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, v6, (int)v12, (int)"OK", v7, 380.0);
sub_774008(v12);
if ( *(_DWORD *)(v11 - 12) )
v8->setTag(v8, 6);
v8->show(v8);
sub_774008(&v11);
sub_774008(&v10);
sub_774008(&v9);
}