// // OptionsCell::loadFromObject from 0x3356ac to 0x3358ec (576 bytes) // // 2 xrefs: // > CustomListView::reloadAll @ 0x33a63a // > CustomListView::loadCell @ 0x33bb94 // // 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 OptionsCell::loadFromObject(OptionsCell *a1, OptionsObject *a2) { cocos2d::CCLayer *m_mainLayer; // r0 int m_count; // r10 cocos2d::CCLabelBMFont *v6; // r4 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 void (__fastcall *setColor)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::ccColor3B *); // r2 cocos2d::CCLabelBMFont *v10; // r6 void (__fastcall *v11)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r10 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 int v13; // r11 float width; // s17 float v15; // r0 const char *v16; // r0 cocos2d::CCSprite *v17; // r5 CCMenuItemSpriteExtra *v18; // r5 cocos2d::CCNode *v19; // r4 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 cocos2d::CCLabelBMFont *v21; // [sp+10h] [bp-1Ch] BYREF cocos2d::CCPoint v22; // [sp+14h] [bp-18h] BYREF cocos2d::CCPoint v23; // [sp+1Ch] [bp-10h] BYREF m_mainLayer = a1->m_mainLayer; a1->m_optionsObject = a2; m_mainLayer->removeAllChildrenWithCleanup(m_mainLayer, 1); m_count = a2->m_count; v6 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v6, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v6->setScale)(v6, 1053609165); setAnchorPoint = v6->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v23, 0.0, 0.5); setAnchorPoint(v6, &v23); setPosition = v6->setPosition; cocos2d::CCPoint::CCPoint(&v23, 40.0, a1->m_height * 0.5); setPosition(v6, &v23); if ( m_count ) { if ( m_count > 0 ) { sub_776584((int)&v21, "[ "); GameToolbox::intToString((GameToolbox *)&v23, m_count); sub_77441C(&v21, &v23); sub_774008(&v23); sub_774544((int)&v21, " ]"); v10 = cocos2d::CCLabelBMFont::create(); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v10, 2); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v10->setScale)(v10, 1058642330); v11 = v10->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v23, 0.0, 0.5); v11(v10, &v23); v10->setColor(v10, &stru_9AA43F); v10->setOpacity(v10, 175); v12 = v10->setPosition; v13 = (int)v6->getPosition(v6); width = v6->getContentSize(v6)->width; v15 = v6->getScale(v6); cocos2d::CCPoint::CCPoint(&v22, (float)(width * v15) + 8.0, 0.0); cocos2d::CCPoint::operator+(&v23, v13, &v22); v12(v10, &v23); sub_774008(&v21); } } else { setColor = v6->setColor; LOWORD(v23.x) = -26986; BYTE2(v23.x) = -106; setColor(v6, (const cocos2d::ccColor3B *)&v23); } if ( a1->m_optionsObject->m_enabled ) v16 = "GJ_checkOn_001.png"; else v16 = "GJ_checkOff_001.png"; v17 = cocos2d::CCSprite::createWithSpriteFrameName(v16); ((void (__fastcall *)(cocos2d::CCSprite *, int))v17->setScale)(v17, 1058642330); LODWORD(v23.x) = OptionsCell::onToggleOption; v23.y = 0.0; v18 = CCMenuItemSpriteExtra::create( v17, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(OptionsCell::onToggleOption, (unsigned int)a1)); CCMenuItemSpriteExtra::setSizeMult(v18, 1.5); v19 = (cocos2d::CCNode *)cocos2d::CCMenu::create((cocos2d::CCMenu *)v18, nullptr); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v19, 3); v20 = v19->setPosition; cocos2d::CCPoint::CCPoint(&v22, 20.0, a1->m_height * 0.5); v20(v19, &v22); }
GD Web Decomp Icon

GD Web Decomp

Raw Source