// // GJListLayer::init from 0x7a07a0 to 0x7a0db0 (1552 bytes) // // 2 xrefs: // > GJListLayer::create @ 0x7a0e68 // > @ 0x4aa90 // // 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 // bool GJListLayer::init( GJListLayer *a1, BoomListView *a2, const char *a3, cocos2d::ccColor4B a4, float a5, float a6, int a7) { float v9; // s8 bool v13; // w25 const char *v14; // x23 const char *v15; // x0 cocos2d::CCSprite *v16; // x28 float v17; // s10 float v18; // s11 cocos2d::CCSprite *v19; // x23 cocos2d::CCSprite *v20; // x21 void (__fastcall *v21)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v22)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCSprite *v23; // x22 void (__fastcall *v24)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 void (__fastcall *v25)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x28 cocos2d::CCSprite *v26; // x0 float (__fastcall *getScaleY)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // x21 cocos2d::CCLabelBMFont *v29; // x22 cocos2d::CCSprite *v30; // x0 const cocos2d::CCPoint *(__fastcall *getPosition)(cocos2d::CCNode *__hidden); // x1 void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // x23 __int64 v33; // x27 cocos2d::CCSprite *v35; // x28 void (__fastcall *v36)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x21 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v38)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v40)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v41)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v42)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v43)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] void (__fastcall *v44)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // [xsp+C0h] [xbp+C0h] cocos2d::ccColor4B v45; // [xsp+C8h] [xbp+C8h] BYREF __int64 v46; // [xsp+D8h] [xbp+D8h] BYREF cocos2d::CCPoint v47; // [xsp+E0h] [xbp+E0h] BYREF v45 = a4; v9 = a6; v13 = cocos2d::CCLayerColor::initWithColor(a1, &v45, a5, a6); if ( v13 ) { if ( a7 == 1 ) { v14 = "GJ_table_side_001.png"; v15 = "GJ_table_side_001.png"; } else { if ( a3 ) v14 = "GJ_table_top_001.png"; else v14 = "GJ_table_top02_001.png"; v15 = "GJ_table_bottom_001.png"; } v16 = cocos2d::CCSprite::createWithSpriteFrameName(v15); v17 = a5 * 0.5; v18 = 0.0; setPosition = v16->setPosition; cocos2d::CCPoint::CCPoint(&v47, a5 * 0.5, -10.0); setPosition(v16, &v47); a1->addChild_0(a1, v16, 10); v19 = cocos2d::CCSprite::createWithSpriteFrameName(v14); v38 = v19->setPosition; cocos2d::CCPoint::CCPoint(&v47, a5 * 0.5, (float)(v9 - 5.0) + 20.0); v38(v19, &v47); setAnchorPoint = v19->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v47, 0.5, 0.5); setAnchorPoint(v19, &v47); a1->addChild_0(a1, v19, 10); if ( a7 == 1 ) { v19->setScaleY(v19, (float)(a5 - 2.0) / v19->m_obRect.size.height); v19->setRotation(v19, 90.0); v40 = v19->setPosition; cocos2d::CCPoint::CCPoint(&v47, v17, (float)(v9 - 14.0) + 20.0); v40(v19, &v47); v16->setScaleY(v16, (float)(a5 - 2.0) / v16->m_obRect.size.height); v16->setRotation(v16, -90.0); v41 = v16->setPosition; cocos2d::CCPoint::CCPoint(&v47, v17, -6.0); v41(v16, &v47); while ( 1 ) { while ( 1 ) { v35 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); a1->addChild_0(a1, v35, 11); if ( a7 != 3 ) break; a7 = 4; v43 = v35->setPosition; cocos2d::CCPoint::CCPoint(&v47, -5.0, -6.0); v43(v35, &v47); cocos2d::CCSprite::setFlipY(v35, 1); } if ( a7 == 4 ) break; if ( a7 == 2 ) { a7 = 3; v44 = v35->setPosition; cocos2d::CCPoint::CCPoint(&v47, a5 + 5.0, v9 + 6.0); v44(v35, &v47); cocos2d::CCSprite::setFlipX(v35, 1); } else { v42 = v35->setPosition; cocos2d::CCPoint::CCPoint(&v47, -5.0, v9 + 6.0); v42(v35, &v47); ++a7; } } v36 = v35->setPosition; cocos2d::CCPoint::CCPoint(&v47, a5 + 5.0, -6.0); v36(v35, &v47); cocos2d::CCSprite::setFlipX(v35, 1); cocos2d::CCSprite::setFlipY(v35, 1); v9 = v9 - 2.0; v18 = 1.0; } v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); v21 = v20->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v47, 0.0, 0.0); v21(v20, &v47); a1->addChild_0(a1, v20, 9); v22 = v20->setPosition; cocos2d::CCPoint::CCPoint(&v47, -20.0, v18); v22(v20, &v47); v20->setScaleY(v20, v9 / v20->m_obRect.size.height); v23 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); v24 = v23->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v47, 1.0, 0.0); v24(v23, &v47); a1->addChild_0(a1, v23, 9); v25 = v23->setPosition; cocos2d::CCPoint::CCPoint(&v47, a5 + 20.0, v18); v25(v23, &v47); v26 = v20; getScaleY = v20->getScaleY; setScaleY = v23->setScaleY; getScaleY(v26); ((void (__fastcall *)(cocos2d::CCSprite *))setScaleY)(v23); cocos2d::CCSprite::setFlipX(v23, 1); if ( a3 ) { v29 = cocos2d::CCLabelBMFont::create(); a1->addChild_0(a1, v29, 11); cocos2d::CCLabelBMFont::limitLabelWidth(v29, 280.0, 0.8, 0.0); v30 = v19; getPosition = v19->getPosition; v32 = v29->setPosition; v33 = (__int64)getPosition(v30); cocos2d::CCPoint::CCPoint(&v47, 0.0, 3.0); cocos2d::CCPoint::operator+(&v46, v33, &v47); v32(v29, (const cocos2d::CCPoint *)&v46); } if ( a2 ) { a1->m_listView = a2; cocos2d::CCObject::retain(a2); a1->addChild_0(a1, a1->m_listView, 6); a1->m_listView->setTag(a1->m_listView, 9); } } return v13; }
GD Web Decomp Icon

GD Web Decomp

Raw Source