// // GJCommentListLayer::init from 0x4ab8bc to 0x4abae8 (556 bytes) // // 1 xrefs: // > GJCommentListLayer::create @ 0x4abb78 // // 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 GJCommentListLayer::init( GJCommentListLayer *a1, BoomListView *a2, const char *a3, cocos2d::ccColor4B a4, float a5, float a6, bool a7) { cocos2d::CCDirector *v9; // r0 cocos2d::CCTouchDispatcher *v10; // r0 char *v11; // r1 char *v12; // r1 cocos2d::CCSprite *v13; // r6 void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v15; // r6 void (__fastcall *v16)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 void (__fastcall *setAnchorPoint)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v18; // r6 void (__fastcall *v19)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 void (__fastcall *v20)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCSprite *v21; // r7 void (__fastcall *v22)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11 void (__fastcall *v23)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r11 void (__fastcall *setScaleY)(cocos2d::CCSprite *__hidden, float); // r4 int v25; // r0 GJCommentListLayer_vtbl *v26; // r3 _BOOL4 v28; // [sp+4h] [bp-28h] cocos2d::ccColor4B v29; // [sp+Ch] [bp-20h] BYREF cocos2d::CCSprite *v30; // [sp+14h] [bp-18h] BYREF cocos2d::CCSprite *v31; // [sp+18h] [bp-14h] BYREF cocos2d::CCPoint v32; // [sp+1Ch] [bp-10h] BYREF v29 = a4; v28 = cocos2d::CCLayerColor::initWithColor(a1, &v29, a5, a6); if ( v28 ) { v9 = cocos2d::CCDirector::sharedDirector(); v10 = v9->getTouchDispatcher(v9); cocos2d::CCTouchDispatcher::registerForcePrio(v10, a1, 2); if ( a7 ) v11 = "GJ_commentTop2_001.png"; else v11 = "GJ_commentTop_001.png"; sub_776584((int)&v30, v11); if ( a7 ) v12 = "GJ_commentSide2_001.png"; else v12 = "GJ_commentSide_001.png"; sub_776584((int)&v31, v12); v13 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v30); cocos2d::CCSprite::setFlipY(v13, 1); setPosition = v13->setPosition; cocos2d::CCPoint::CCPoint(&v32, a5 * 0.5, 4.0); setPosition(v13, &v32); a1->addChild_0(a1, v13, 10); v15 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v30); v16 = v15->setPosition; cocos2d::CCPoint::CCPoint(&v32, a5 * 0.5, a6 - 4.0); v16(v15, &v32); setAnchorPoint = v15->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v32, 0.5, 0.5); setAnchorPoint(v15, &v32); a1->addChild_0(a1, v15, 10); v18 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v31); v19 = v18->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v32, 0.0, 0.0); v19(v18, &v32); a1->addChild_0(a1, v18, 9); v20 = v18->setPosition; cocos2d::CCPoint::CCPoint(&v32, -7.0, 0.0); v20(v18, &v32); ((void (__fastcall *)(cocos2d::CCSprite *, _DWORD))v18->setScaleY)( v18, (float)(a6 - 5.0) / v18->m_obRect.size.height); v21 = cocos2d::CCSprite::createWithSpriteFrameName((const char *)v31); v22 = v21->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v32, 1.0, 0.0); v22(v21, &v32); a1->addChild_0(a1, v21, 9); v23 = v21->setPosition; cocos2d::CCPoint::CCPoint(&v32, a5 + 7.0, 0.0); v23(v21, &v32); setScaleY = v21->setScaleY; v25 = ((int (__fastcall *)(cocos2d::CCSprite *))v18->getScaleY)(v18); ((void (__fastcall *)(cocos2d::CCSprite *, int))setScaleY)(v21, v25); cocos2d::CCSprite::setFlipX(v21, 1); if ( a2 ) { v26 = a1->cocos2d::CCLayerColor::cocos2d::CCLayerRGBA::cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_list = a2; v26->addChild_0(a1, a2, 6); } sub_774008(&v31); sub_774008(&v30); } return v28; }
GD Web Decomp Icon

GD Web Decomp

Raw Source