// // InfoLayer::setupLevelInfo from 0x7e2aa0 to 0x7e2cc8 (552 bytes) // // 2 xrefs: // > InfoLayer::init @ 0x7e4e00 // > @ 0xc2688 // // 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) { cocos2d::CCDirector *v2; // x0 GJLevelList *m_levelList; // x0 unsigned int m_listID; // w20 cocos2d::CCString *v5; // x0 cocos2d::CCLabelBMFont *v6; // x23 cocos2d::CCMenu *v7; // x21 cocos2d::CCLabelBMFont *v8; // x26 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x27 CCMenuItemSpriteExtra *v10; // x0 void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 cocos2d::CCString *v12; // x0 GJGameLevel *m_level; // x3 double v14; // d0 double v15; // d1 float v16; // [xsp+68h] [xbp+68h] float v17; // [xsp+6Ch] [xbp+6Ch] cocos2d::CCPoint v18; // [xsp+70h] [xbp+70h] BYREF cocos2d::CCPoint v19; // [xsp+78h] [xbp+78h] BYREF __int64 v20; // [xsp+80h] [xbp+80h] BYREF cocos2d::CCSize WinSize; // 0:kr00_8.8 cocos2d::SEL_MenuHandler v22; // 0:x2.16 v2 = cocos2d::CCDirector::sharedDirector(); WinSize = cocos2d::CCDirector::getWinSize(v2); *(float *)&v14 = WinSize.width; *(float *)&v15 = WinSize.height; m_levelList = a1->m_levelList; if ( m_levelList ) { m_listID = m_levelList->m_listID; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)(unsigned int)m_levelList->m_listVersion, v14, v15); } else { m_level = a1->m_level; m_listID = m_level->m_levelID.random - m_level->m_levelID.seed; v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Version: %i", (const char *)(unsigned int)m_level->m_levelVersion, v14, v15); } cocos2d::CCString::getCString(v5); v6 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 2); v7 = cocos2d::CCMenu::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 2); if ( m_listID ) { v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"ID: %i", (const char *)m_listID); cocos2d::CCString::getCString(v12); } v8 = cocos2d::CCLabelBMFont::create(); cocos2d::CCPoint::CCPoint(&v18, v16 * 0.5, (float)((float)(v17 * 0.5) + -145.0) + 14.0); setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v19, -50.0, 0.0); cocos2d::CCPoint::operator+(&v20, &v18, &v19); setPosition(v6, (const cocos2d::CCPoint *)&v20); v6->setScale(v6, 0.6); v8->setScale(v8, 0.6); v22.ptr = (void (__cdecl *)(cocos2d::CCObject *))a1; v22.adj = (size_t)InfoLayer::onCopyLevelID; v10 = CCMenuItemSpriteExtra::create(v8, nullptr, v22); v7->addChild(v7, v10); v11 = v7->setPosition; cocos2d::CCPoint::CCPoint(&v19, 50.0, 0.0); cocos2d::CCPoint::operator+(&v20, &v18, &v19); v11(v7, (const cocos2d::CCPoint *)&v20); }
GD Web Decomp Icon

GD Web Decomp

Raw Source