// // InfoLayer::setupLevelInfo from 0x1402bcaf0 to 0x1402bcce1 (497 bytes) // // 3 xrefs: // > InfoLayer::init @ 0x1402bb884 // > InfoLayer::init @ 0x1402bbbce // > @ 0x1406d27ec // // 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 InfoLayer::setupLevelInfo(InfoLayer *a1) { float v1; // xmm0_4 cocos2d::CCDirector *v3; // rax GJLevelList *m_levelList; // rbx int m_listVersion; // edx int m_listID; // ebx GJGameLevel *m_level; // rax cocos2d::CCString *v8; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v10; // rsi __int64 v11; // rcx cocos2d::CCNode *v12; // r14 const char *v13; // rax cocos2d::CCString *v14; // rax struct cocos2d::CCLabelBMFont *v15; // rbx double v16; // xmm0_8 CCMenuItemSpriteExtra *v17; // rax float v18; // xmm0_4 float v19; // [rsp+50h] [rbp+8h] char v20; // [rsp+58h] [rbp+10h] BYREF char v21; // [rsp+60h] [rbp+18h] BYREF v3 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(a1); cocos2d::CCDirector::getWinSize(v3); m_levelList = a1->m_levelList; if ( m_levelList ) { m_listVersion = m_levelList->m_listVersion; m_listID = m_levelList->m_listID; } else { m_level = a1->m_level; m_listID = m_level->m_levelID.random - m_level->m_levelID.seed; m_listVersion = m_level->m_levelVersion; } v8 = cocos2d::CCString::createWithFormat("Version: %i", m_listVersion); CString = cocos2d::CCString::getCString(v8); v10 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 2); v12 = (cocos2d::CCNode *)cocos2d::CCMenu::create(v11); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v12, 2); v13 = "ID: na"; if ( m_listID ) { v14 = cocos2d::CCString::createWithFormat("ID: %i", m_listID); v13 = cocos2d::CCString::getCString(v14); } v15 = cocos2d::CCLabelBMFont::create(v13, "goldFont.fnt"); v16 = cocos2d::CCPoint::CCPoint(v1, v19 * 0.5); cocos2d::CCPoint::CCPoint(*(float *)&v16, -50.0); cocos2d::CCPoint::operator+(&v20, &v21); v10->setPosition_0(v10, (const cocos2d::CCPoint *)&v21); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v10->setScale_0)(v10); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v15->setScale_0)(v15); v17 = CCMenuItemSpriteExtra::create(v15, nullptr, a1, (cocos2d::SEL_MenuHandler *)InfoLayer::onCopyLevelID); v18 = ((float (__fastcall *)(cocos2d::CCNode *, CCMenuItemSpriteExtra *))v12->addChild_1)(v12, v17); cocos2d::CCPoint::CCPoint(v18, 50.0); cocos2d::CCPoint::operator+(&v20, &v21); v12->setPosition_0(v12, (const cocos2d::CCPoint *)&v21); }
GD Web Decomp Icon

GD Web Decomp

Raw Source