// // StatsCell::loadFromObject from 0x1400b2db0 to 0x1400b3007 (599 bytes) // // 2 xrefs: // > CustomListView::loadCell @ 0x1400ab819 // > @ 0x1406c7aac // // 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 StatsCell::loadFromObject(StatsCell *a1, StatsObject *a2) { StatsObject *v3; // rbx _BOOL8 v4; // rdx int m_value; // edi StatsCell *v6; // rcx const char *TitleFromKey; // rax struct cocos2d::CCLabelBMFont *v8; // rsi cocos2d::CCString *v9; // rax const char *CString; // rax struct cocos2d::CCLabelBMFont *v11; // rdi cocos2d::CCLabelBMFont_vtbl *v12; // rbx const cocos2d::CCPoint *v13; // rax cocos2d::CCLabelBMFont_vtbl *v14; // rbx const cocos2d::CCPoint *v15; // rax cocos2d::CCLabelBMFont_vtbl *v16; // rbx const cocos2d::CCPoint *v17; // rax cocos2d::CCLabelBMFont_vtbl *v18; // rbx const cocos2d::CCPoint *v19; // rax cocos2d::CCPoint v20; // [rsp+50h] [rbp+8h] BYREF v3 = a2; LOBYTE(a2) = -1; a1->m_backgroundLayer->setOpacity(&a1->m_backgroundLayer->cocos2d::CCRGBAProtocol, (GLubyte)a2); LOBYTE(v4) = 1; a1->m_mainLayer->removeAllChildrenWithCleanup(a1->m_mainLayer, v4); m_value = v3->m_value; TitleFromKey = StatsCell::getTitleFromKey(v6, v3->m_key); v8 = cocos2d::CCLabelBMFont::create(TitleFromKey, "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v8); if ( v8->getContentSize(v8)->width > 200.0 ) { fminf(1.0, 200.0 / v8->getContentSize(v8)->width); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v8->setScale_0)(v8); } v9 = cocos2d::CCString::createWithFormat("%i", m_value); CString = cocos2d::CCString::getCString(v9); v11 = cocos2d::CCLabelBMFont::create(CString, "goldFont.fnt"); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v11); if ( v11->getContentSize(v11)->width > 100.0 ) { fminf(1.0, 100.0 / v11->getContentSize(v11)->width); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11); } v8->getScale(v8); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v8->setScale_0)(v8); v11->getScale(v11); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v11->setScale_0)(v11); v12 = v8->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v20, 0.0, 0.5); v12->setAnchorPoint(v8, v13); v14 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v20, 1.0, 0.5); v14->setAnchorPoint(v11, v15); v16 = v8->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v20, 20.0, (float)(a1->m_height * 0.5) - 1.0); v16->setPosition_0(v8, v17); v18 = v11->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(&v20, 330.0, (float)(a1->m_height * 0.5) - 1.0); v18->setPosition_0(v11, v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source