//
// LevelBrowserLayer::updatePageLabel from 0x100415d50 to 0x100415e54 (260 bytes)
//
// 2 xrefs:
// > LevelBrowserLayer::init @ 0x1004148c0
// > LevelBrowserLayer::updateLevelsLabel @ 0x100418e24
//
// 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 LevelBrowserLayer::updatePageLabel(LevelBrowserLayer *a1)
{
cocos2d::CCLabelBMFont *m_pageText; // x20
GJSearchObject *m_searchObject; // x8
int v4; // w8
cocos2d::CCString *v5; // x0
const char *CString; // x0
cocos2d::CCLabelBMFont *m_folderText; // x20
GJSearchObject *v8; // x8
cocos2d::CCString *v9; // x0
const char *v10; // x0
CCMenuItemSpriteExtra *m_lastBtn; // x0
m_pageText = a1->m_pageText;
if ( m_pageText )
{
m_searchObject = a1->m_searchObject;
if ( m_searchObject )
v4 = m_searchObject->m_page + 1;
else
v4 = 1;
v5 = (cocos2d::CCString *)sub_100268F4C("%i", v4);
CString = cocos2d::CCString::getCString(v5);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_pageText->setString)(m_pageText, CString);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_pageText, 32.0, 0.8, 0.0);
m_folderText = a1->m_folderText;
if ( m_folderText )
{
v8 = a1->m_searchObject;
if ( v8 )
LODWORD(v8) = v8->m_folder;
v9 = (cocos2d::CCString *)sub_100268F4C("%i", (_DWORD)v8);
v10 = cocos2d::CCString::getCString(v9);
((void (__fastcall *)(cocos2d::CCLabelBMFont *, const char *))m_folderText->setString)(m_folderText, v10);
cocos2d::CCLabelBMFont::limitLabelWidth(a1->m_folderText, 24.0, 0.55, 0.0);
}
m_lastBtn = a1->m_lastBtn;
if ( m_lastBtn )
((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))m_lastBtn->setVisible)(m_lastBtn, a1->m_lastPage > 0);
}
}