// // SetupDashRingPopup::init from 0x57e894 to 0x57ebc8 (820 bytes) // // 1 xrefs: // > SetupDashRingPopup::create @ 0x57ec8e // // 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 SetupDashRingPopup::init(SetupDashRingPopup *a1, DashRingObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 _BYTE v7[4]; // [sp+38h] [bp-2Ch] BYREF cocos2d::CCSize v8; // [sp+3Ch] [bp-28h] BYREF cocos2d::CCPoint v9; // [sp+44h] [bp-20h] BYREF cocos2d::CCPoint v10; // [sp+4Ch] [bp-18h] BYREF cocos2d::CCPoint v11; // [sp+54h] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 320.0, 240.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v11, "Dash Orb"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v11); sub_776584((int)&v11, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v11); sub_774008(&v11); sub_776584((int)&v10, "Help"); sub_776584( (int)&v11, "Speed changes the speed of the dash.\n" "End Boost is the force applied when the dash stops.\n" "Max Duration will end the dash automatically after this time.\n" "Allow Collide makes the dash not end on collision.\n" "Stop Slide will limit the end momentum."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v10, (int)&v11, 1065353216); sub_774008(&v11); sub_774008(&v10); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v8, v5); cocos2d::CCPoint::CCPoint(&v9, v8.width * 0.5, (float)(v8.height * 0.5) + 70.0); sub_776584((int)v7, "Speed"); cocos2d::CCPoint::CCPoint(&v10, 0.0, 0.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 586, (int)v7, &v11, (cocos2d::CCZone *)0x3F4CCCCD, 0, Float, 6, 0, nullptr, 2.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "End Boost"); cocos2d::CCPoint::CCPoint(&v10, 0.0, -40.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 588, (int)v7, &v11, (cocos2d::CCZone *)0x3F4CCCCD, 0, Float, 6, 0, nullptr, 2.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "Max Duration"); cocos2d::CCPoint::CCPoint(&v10, 0.0, -80.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 590, (int)v7, &v11, (cocos2d::CCZone *)0x3F4CCCCD, 0, Float, 6, 0, nullptr, 2.0, 0, 0, 1, 2, 0); sub_774008(v7); sub_776584((int)v7, "Allow\nCollide"); cocos2d::CCPoint::CCPoint(&v10, -80.0, -120.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createToggleValueControl(a1, 587, (int)v7, &v11, 0, 0, 0, 1.0); sub_774008(v7); sub_776584((int)v7, "Stop\nSlide"); cocos2d::CCPoint::CCPoint(&v10, 20.0, -120.0); cocos2d::CCPoint::operator+(&v11, &v9, &v10); SetupTriggerPopup::createToggleValueControl(a1, 589, (int)v7, &v11, 0, 0, 0, 1.0); sub_774008(v7); sub_776584((int)&v10, "NO Multi\nActivate"); cocos2d::CCPoint::CCPoint( &v11, (float)((float)(v8.width * 0.5) - (float)(a1->m_width * 0.5)) + 20.0, (float)((float)(v8.height * 0.5) - (float)(a1->m_height * 0.5)) + 25.0); SetupTriggerPopup::createToggleValueControl(a1, 444, (int)&v10, &v11, 0, 0, 0, 1.0); sub_774008(&v10); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source