// // SmartTemplateCell::loadFromObject from 0x42925c to 0x42948c (560 bytes) // // 2 xrefs: // > CustomListView::reloadAll @ 0x43127e // > CustomListView::loadCell @ 0x434272 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:48:06 +0000 // int __fastcall SmartTemplateCell::loadFromObject(SmartTemplateCell *this, GJSmartTemplate *a2) { const char *v4; // r2 cocos2d::CCLabelBMFont *v5; // r0 cocos2d::CCLabelBMFont *v6; // r4 void (__fastcall *v7)(cocos2d::CCLabelBMFont *, _DWORD *); // r8 void (__fastcall *v8)(cocos2d::CCLabelBMFont *, _DWORD *); // r8 GameLevelManager *v9; // r0 int v10; // r3 char *v11; // r3 ButtonSprite *v12; // r0 cocos2d::CCMenu *v13; // r8 ButtonSprite *v14; // r0 cocos2d::CCMenuItem *v15; // r7 const cocos2d::CCPoint *v16; // r11 void (__fastcall *v17)(cocos2d::CCMenuItem *, _BYTE *); // r8 float v19; // [sp+10h] [bp-30h] float v20; // [sp+10h] [bp-30h] void (__fastcall *v21)(cocos2d::CCMenu *, _BYTE *); // [sp+14h] [bp-2Ch] _BYTE v22[8]; // [sp+18h] [bp-28h] BYREF _BYTE v23[8]; // [sp+20h] [bp-20h] BYREF _BYTE v24[8]; // [sp+28h] [bp-18h] BYREF int (__fastcall ***(__fastcall *v25)(int (__fastcall ***)(_DWORD, _DWORD, int), cocos2d::CCObject *))(_DWORD, _DWORD, int); // [sp+30h] [bp-10h] int v26; // [sp+34h] [bp-Ch] _DWORD v27[2]; // [sp+38h] [bp-8h] BYREF int v28[3]; // [sp+40h] [bp+0h] BYREF (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 103) + 292))(*((_DWORD *)this + 103), 1); *((_DWORD *)this + 105) = a2; std::string::basic_string(v28, (int)a2 + 96); if ( (v28[0] & 1) != 0 ) v5 = (cocos2d::CCLabelBMFont *)v28[2]; else v5 = (cocos2d::CCLabelBMFont *)((char *)v28 + 1); v6 = (cocos2d::CCLabelBMFont *)cocos2d::CCLabelBMFont::create(v5, "bigFont.fnt", v4); std::string::~string((int)v28); (*(void (__fastcall **)(_DWORD, cocos2d::CCLabelBMFont *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v6); v7 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v6 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 0.0, 0.5); v7(v6, v27); v8 = *(void (__fastcall **)(cocos2d::CCLabelBMFont *, _DWORD *))(*(_DWORD *)v6 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v27, 12.0, *((float *)this + 101) * 0.5); v8(v6, v27); v9 = (GameLevelManager *)cocos2d::CCLabelBMFont::limitLabelWidth(v6, 200.0, 0.8, 0.0); v10 = *(_DWORD *)(GameLevelManager::sharedState(v9) + 976); if ( v10 ) { if ( *(_DWORD *)(v10 + 120) == *(_DWORD *)(*((_DWORD *)this + 105) + 120) ) v11 = "GJ_button_02.png"; else v11 = "GJ_button_01.png"; } else { v11 = "GJ_button_01.png"; } v12 = ButtonSprite::create( (ButtonSprite *)"Use", (const char *)&word_32, 0, 0.5, 0, "bigFont.fnt", v11, (const char *)0x41F00000, v19); v25 = SmartTemplateCell::onClick; v26 = 0; v13 = (cocos2d::CCMenu *)CCMenuItemSpriteExtra::create((int)v12, 0, (int)this, (int)SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult((int)v13, 1.5); (*(void (__fastcall **)(cocos2d::CCMenu *, _DWORD))(*(_DWORD *)v13 + 36))(v13, 0); v14 = ButtonSprite::create( (ButtonSprite *)"Edit", (const char *)&word_32, 0, 0.5, 0, "bigFont.fnt", "GJ_button_03.png", (const char *)0x41F00000, v20); v27[0] = SmartTemplateCell::onClick; v27[1] = 0; v15 = (cocos2d::CCMenuItem *)CCMenuItemSpriteExtra::create((int)v14, 0, (int)this, (int)SmartTemplateCell::onClick, 0); CCMenuItemSpriteExtra::setSizeMult((int)v15, 1.5); (*(void (__fastcall **)(cocos2d::CCMenuItem *, int))(*(_DWORD *)v15 + 36))(v15, 1); v16 = (const cocos2d::CCPoint *)cocos2d::CCMenu::create(v13, v15, 0); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v24, (float)((float)(*((float *)this + 100) - 55.0) - 25.0) - 10.0, *((float *)this + 101) * 0.5); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v22, v16); v21 = *(void (__fastcall **)(cocos2d::CCMenu *, _BYTE *))(*(_DWORD *)v13 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 0.0, 0.0); cocos2d::CCPoint::operator+(v24, v22, v23); v21(v13, v24); v17 = *(void (__fastcall **)(cocos2d::CCMenuItem *, _BYTE *))(*(_DWORD *)v15 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v23, 55.0, 0.0); cocos2d::CCPoint::operator+(v24, v22, v23); v17(v15, v24); return (*(int (__fastcall **)(_DWORD, const cocos2d::CCPoint *))(**((_DWORD **)this + 103) + 228))( *((_DWORD *)this + 103), v16); }
GD Web Decomp Icon

GD Web Decomp

Raw Source