// // SetupCoinLayer::init from 0x57c9e4 to 0x57cbc6 (482 bytes) // // 1 xrefs: // > SetupCoinLayer::create @ 0x57cc72 // // 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 SetupCoinLayer::init(SetupCoinLayer *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v5; // r9 cocos2d::CCDirector *v6; // r0 _BYTE v8[4]; // [sp+40h] [bp-2Ch] BYREF cocos2d::CCSize v9; // [sp+44h] [bp-28h] BYREF cocos2d::CCPoint v10; // [sp+4Ch] [bp-20h] BYREF cocos2d::CCPoint v11; // [sp+54h] [bp-18h] BYREF cocos2d::CCPoint v12; // [sp+5Ch] [bp-10h] BYREF v5 = SetupTriggerPopup::init(a1, a2, a3, 300.0, 220.0, 1); if ( v5 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v12, "Setup Coin"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v12); sub_776584((int)&v12, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v12); sub_774008(&v12); sub_776584((int)&v11, "Help"); sub_776584((int)&v12, "Target ID will be spawn triggered when collected."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v11, (int)&v12, 1065353216); sub_774008(&v12); sub_774008(&v11); v6 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v9, v6); cocos2d::CCPoint::CCPoint(&v10, v9.width * 0.5, v9.height * 0.5); sub_776584((int)v8, "Target ID:"); cocos2d::CCPoint::CCPoint(&v11, 0.0, 30.0); cocos2d::CCPoint::operator+(&v12, &v10, &v11); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 51, (int)v8, &v12, (cocos2d::CCZone *)0x3F4CCCCD, 1, Int, 10, 1, nullptr, 9999.0, 0, 0, 0, 0, 0); sub_774008(v8); if ( a2 && a2->m_objectID == 142 ) { sub_776584((int)v8, "Unique ID:"); cocos2d::CCPoint::CCPoint(&v11, 0.0, -30.0); cocos2d::CCPoint::operator+(&v12, &v10, &v11); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 12, (int)v8, &v12, (cocos2d::CCZone *)0x3F4CCCCD, 1, Int, 10, 1, nullptr, 9999.0, 0, 0, 0, 0, 0); sub_774008(v8); } SetupTriggerPopup::postSetup(a1); } return v5; }
GD Web Decomp Icon

GD Web Decomp

Raw Source