// // SelectFontLayer::updateFontLabel from 0x10029a5e0 to 0x10029a6fb (283 bytes) // // 2 xrefs: // > SelectFontLayer::init @ 0x10029a4b1 // > SelectFontLayer::onChangeFont @ 0x10029a5ce // // 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 SelectFontLayer::updateFontLabel(SelectFontLayer *a1) { int m_fontIndex; // r14d cocos2d::CCLabelBMFont *m_fontLabel; // rdi cocos2d::CCString *v4; // rax const char *CString; // r14 GameManager *v6; // rax GameManager *v7; // r15 GameManager *v8; // rax const char *FontFile; // rax cocos2d::CCLabelBMFont *v10; // rax cocos2d::CCLabelBMFont *v11; // rbx char v12; // [rsp+0h] [rbp-30h] float v13; // [rsp+8h] [rbp-28h] BYREF float v14[8]; // [rsp+10h] [rbp-20h] BYREF m_fontIndex = a1->m_editorLayer->m_levelSettings->m_fontIndex; if ( a1->m_font != m_fontIndex ) { m_fontLabel = a1->m_fontLabel; if ( m_fontLabel ) { ((void (__fastcall *)(cocos2d::CCLabelBMFont *))m_fontLabel->removeFromParent)(m_fontLabel); a1->m_fontLabel = nullptr; } a1->m_font = m_fontIndex; v4 = (cocos2d::CCString *)sub_1007AB580("Font %i", v12); CString = cocos2d::CCString::getCString(v4); v6 = GameManager::sharedState(); GameManager::loadFont(v6, a1->m_font); v7 = GameManager::sharedState(); v8 = GameManager::sharedState(); FontFile = GameManager::getFontFile(v7, v8->m_loadedFont); v10 = cocos2d::CCLabelBMFont::create_3(CString, FontFile); a1->m_fontLabel = v10; ((void (__fastcall *)(SelectFontLayer *, cocos2d::CCLabelBMFont *))a1->addChild)(a1, v10); cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v14); v11 = a1->m_fontLabel; sub_10028CBE0(&v13, v14[0] * 0.5, 0.5 * v14[1]); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, float *))v11->setPosition)(v11, &v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source