// // GJLocalLevelScoreCell::loadFromScore from 0x33809c to 0x338210 (372 bytes) // // 1 xrefs: // > CustomListView::loadCell @ 0x33bd00 // // 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 GJLocalLevelScoreCell::loadFromScore(GJLocalLevelScoreCell *a1, GJLocalScore *a2) { GJLocalScore *m_localScore; // r3 GameToolbox *v5; // r0 char *v6; // r1 cocos2d::CCSprite *v7; // r6 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r10 cocos2d::CCLabelBMFont *v9; // r6 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10 void (__fastcall *v11)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 cocos2d::CCLabelBMFont *v12; // [sp+0h] [bp-18h] BYREF GameToolbox v13; // [sp+4h] [bp-14h] BYREF cocos2d::CCSprite *v14; // [sp+8h] [bp-10h] BYREF cocos2d::CCPoint v15; // [sp+Ch] [bp-Ch] BYREF a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, 1); a1->m_localScore = a2; sub_776584((int)&v12, (char *)&unk_939830); m_localScore = a1->m_localScore; if ( m_localScore->m_type ) { GameToolbox::pointsToString((GameToolbox *)&v15, m_localScore->m_points); sub_774794(&v12, &v15); v5 = (GameToolbox *)&v15; } else { GameToolbox::msToTimeString(&v13, m_localScore->m_points, 1, (int)m_localScore); sub_774794(&v12, &v13); v5 = &v13; } sub_774008(v5); if ( a1->m_localScore->m_type == 1 ) v6 = "GJ_pointsIcon_001.png"; else v6 = "GJ_timeIcon_001.png"; sub_776584((int)&v14, v6); v7 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v14); ((void (__fastcall *)(cocos2d::CCSprite *, int))v7->setScale)(v7, 1057803469); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v7, 20); setPosition = v7->setPosition; cocos2d::CCPoint::CCPoint(&v15, 20.0, a1->m_height * 0.5); setPosition(v7, &v15); v9 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v9, 2); setAnchorPoint = v9->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v15, 0.0, 0.5); setAnchorPoint(v9, &v15); cocos2d::CCLabelBMFont::limitLabelWidth(v9, 200.0, 0.46, 0.0); v11 = v9->setPosition; cocos2d::CCPoint::CCPoint(&v15, 40.0, (float)(a1->m_height * 0.5) + 0.5); v11(v9, &v15); sub_774008(&v14); sub_774008(&v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source