// // GJListLayer::init from 0x1005d26f0 to 0x1005d2ca5 (1461 bytes) // // 1 xrefs: // > GJListLayer::create @ 0x1005d26a9 // // 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 __fastcall GJListLayer::init( GJListLayer *a1, BoomListView *a2, const char *a3, cocos2d::ccColor4B a4, float a5, float a6, int a7) { bool result; // al const char *v11; // r13 const char *v12; // rdi cocos2d::CCSprite *v13; // r12 cocos2d::CCSprite *v14; // r13 cocos2d::CCSprite *v15; // r14 cocos2d::CCSprite *v16; // r14 cocos2d::CCSprite *v17; // r14 cocos2d::CCSprite *v18; // r14 int v19; // xmm0_4 cocos2d::CCSprite *v20; // r15 cocos2d::CCSprite *v21; // r12 cocos2d::CCLabelBMFont *v22; // r15 unsigned __int64 *v23; // r14 cocos2d::CCObject *v24; // rdi bool v25; // r14 unsigned __int64 v26; // [rsp+8h] [rbp-68h] BYREF BoomListView *v27; // [rsp+10h] [rbp-60h] const char *v28; // [rsp+18h] [rbp-58h] cocos2d::ccColor4B v29; // [rsp+24h] [rbp-4Ch] BYREF float v30; // [rsp+28h] [rbp-48h] float v31; // [rsp+2Ch] [rbp-44h] float v32; // [rsp+30h] [rbp-40h] double v33; // [rsp+34h] [rbp-3Ch] BYREF bool v34; // [rsp+3Fh] [rbp-31h] float v35; // [rsp+40h] [rbp-30h] float v36; // [rsp+44h] [rbp-2Ch] v29 = a4; v32 = a5; v35 = a6; result = cocos2d::CCLayerColor::initWithColor_1(a1, &v29, a5, a6); if ( result ) { v27 = a2; v34 = result; v28 = a3; v11 = "GJ_table_top_001.png"; if ( !a3 ) v11 = "GJ_table_top02_001.png"; if ( a7 == 1 ) v11 = "GJ_table_side_001.png"; v12 = "GJ_table_bottom_001.png"; if ( a7 == 1 ) v12 = "GJ_table_side_001.png"; v13 = cocos2d::CCSprite::createWithSpriteFrameName(v12); v36 = v32 * 0.5; sub_10028CBE0((float *)&v33, v32 * 0.5, -10.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v13->setPosition)(v13, &v33); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v13, 10); v14 = cocos2d::CCSprite::createWithSpriteFrameName(v11); sub_10028CBE0((float *)&v33, v36, (float)(v35 + -5.0) + 20.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v14->setPosition)(v14, &v33); sub_10028CBE0((float *)&v33, 0.5, 0.5); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v14->setAnchorPoint)(v14, &v33); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v14, 10); if ( a7 == 1 ) { v31 = v32 + -2.0; v30 = v35 + -2.0; ((void (__fastcall *)(cocos2d::CCSprite *, float))v14->setScaleY)( v14, (float)(v32 + -2.0) / v14->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, float))v14->setRotation)(v14, 90.0); sub_10028CBE0((float *)&v33, v36, (float)(v35 + -14.0) + 20.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v14->setPosition)(v14, &v33); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setScaleY)(v13, v31 / v13->m_obRect.size.height); ((void (__fastcall *)(cocos2d::CCSprite *, float))v13->setRotation)(v13, -90.0); sub_10028CBE0((float *)&v33, v36, -6.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v13->setPosition)(v13, &v33); v36 = v32 + 5.0; v35 = v35 + 6.0; v15 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v15, 11); sub_10028CBE0((float *)&v33, -5.0, v35); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v15->setPosition)(v15, &v33); v16 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v16, 11); sub_10028CBE0((float *)&v33, v36, v35); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v16->setPosition)(v16, &v33); cocos2d::CCSprite::setFlipX(v16, 1); v17 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v17, 11); sub_10028CBE0((float *)&v33, -5.0, -6.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v17->setPosition)(v17, &v33); cocos2d::CCSprite::setFlipY(v17, 1); v18 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_corner_001.png"); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v18, 11); sub_10028CBE0((float *)&v33, v36, -6.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v18->setPosition)(v18, &v33); cocos2d::CCSprite::setFlipX(v18, 1); cocos2d::CCSprite::setFlipY(v18, 1); v35 = v30; } v19 = 1065353216; if ( a7 != 1 ) v19 = 0; v36 = *(float *)&v19; v20 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); sub_10028CBE0((float *)&v33, 0.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v20->setAnchorPoint)(v20, &v33); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v20, 9); sub_10028CBE0((float *)&v33, -20.0, v36); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v20->setPosition)(v20, &v33); ((void (__fastcall *)(cocos2d::CCSprite *, float))v20->setScaleY)(v20, v35 / v20->m_obRect.size.height); v21 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_table_side_001.png"); sub_10028CBE0((float *)&v33, 1.0, 0.0); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v21->setAnchorPoint)(v21, &v33); ((void (__fastcall *)(GJListLayer *, cocos2d::CCSprite *, __int64))a1->addChild_0)(a1, v21, 9); sub_10028CBE0((float *)&v33, v32 + 20.0, v36); ((void (__fastcall *)(cocos2d::CCSprite *, double *))v21->setPosition)(v21, &v33); ((void (__fastcall *)(cocos2d::CCSprite *))v20->getScaleY)(v20); ((void (__fastcall *)(cocos2d::CCSprite *))v21->setScaleY)(v21); cocos2d::CCSprite::setFlipX(v21, 1); if ( v28 ) { v22 = cocos2d::CCLabelBMFont::create_3(v28, "bigFont.fnt"); ((void (__fastcall *)(GJListLayer *, cocos2d::CCLabelBMFont *, __int64))a1->addChild_0)(a1, v22, 11); cocos2d::CCLabelBMFont::limitLabelWidth(v22, 280.0, 0.80000001, 0.0); v23 = (unsigned __int64 *)((__int64 (__fastcall *)(cocos2d::CCSprite *))v14->getPosition)(v14); sub_10028CBE0((float *)&v26, 0.0, 3.0); sub_10028CCE0(&v33, v23, &v26); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, double *))v22->setPosition)(v22, &v33); } v24 = v27; result = v34; if ( v27 ) { a1->m_listView = v27; v25 = result; cocos2d::CCObject::retain(v24); ((void (__fastcall *)(GJListLayer *, BoomListView *, __int64))a1->addChild_0)(a1, a1->m_listView, 6); ((void (__fastcall *)(BoomListView *, __int64))a1->m_listView->setTag)(a1->m_listView, 9); return v25; } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source