// // SetupOptionsTriggerPopup::init from 0x675b34 to 0x675f7a (1094 bytes) // // 1 xrefs: // > SetupOptionsTriggerPopup::create @ 0x676188 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:55:56 +0000 // int __fastcall SetupOptionsTriggerPopup::init( SetupOptionsTriggerPopup *this, GameOptionsTrigger *a2, cocos2d::CCArray *a3) { int v4; // r8 cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // r0 float v6; // s14 float v8[2]; // [sp+34h] [bp-34h] BYREF _BYTE v9[8]; // [sp+3Ch] [bp-2Ch] BYREF _BYTE v10[8]; // [sp+44h] [bp-24h] BYREF int v11[3]; // [sp+4Ch] [bp-1Ch] BYREF int v12; // [sp+58h] [bp-10h] BYREF int v13; // [sp+5Ch] [bp-Ch] int v14; // [sp+60h] [bp-8h] v4 = SetupTriggerPopup::init(this, a2, a3, 420.0, 300.0, 1, 0.0); if ( v4 ) { SetupTriggerPopup::preSetup(this); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Setup Options Trigger", 0x15u); SetupTriggerPopup::addTitle(this, &v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "OK", 2u); SetupTriggerPopup::addCloseButton(this, &v12); std::string::~string((int)&v12); memset(v11, 0, sizeof(v11)); std::string::__init(v11, "Help", 4u); v12 = 0; v13 = 0; v14 = 0; std::string::__init( &v12, "Lets you change various options.\n" "Streak Additive toggles blending of player trail and particles.\n" "Unlink Dual Gravity allows dual players to switch gravity independently. By default they switch together.\n" "Disable P1 and P2 Controls allows you to toggle controls for a specific player.\n" "Audio on Death continues to play music and SFX after the player dies.\n" "Boost Slide increases sliding after a force is applied.", 0x1C8u); SetupTriggerPopup::addHelpButton(this, v11, &v12, 1065353216); std::string::~string((int)&v12); std::string::~string((int)v11); MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal(this); cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal); cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, (float)(v8[0] * 0.5) - 30.0, (float)(v8[1] * 0.5) + 100.0); cocos2d::CCPoint::operator=((char *)this + 712, v9); *((_DWORD *)this + 180) = 0; v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Streak\nAdditive", 0xFu); SetupOptionsTriggerPopup::addOption(this, 159, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Hide Ground", 0xBu); SetupOptionsTriggerPopup::addOption(this, 161, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Hide MG", 7u); SetupOptionsTriggerPopup::addOption(this, 195, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Hide P1", 7u); SetupOptionsTriggerPopup::addOption(this, 162, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Hide P2", 7u); SetupOptionsTriggerPopup::addOption(this, 163, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Disable P1\nControls", 0x13u); SetupOptionsTriggerPopup::addOption(this, 165, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Disable P2\nControls", 0x13u); SetupOptionsTriggerPopup::addOption(this, 199, (int)&v12); std::string::~string((int)&v12); cocos2d::CCPoint::operator=((char *)this + 712, v9); ++*((_DWORD *)this + 180); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Unlink Dual\nGravity", 0x13u); SetupOptionsTriggerPopup::addOption(this, 160, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Hide\nAttempts", 0xDu); SetupOptionsTriggerPopup::addOption(this, 532, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Audio on\nDeath", 0xEu); SetupOptionsTriggerPopup::addOption(this, 575, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "No Death\nSFX", 0xCu); SetupOptionsTriggerPopup::addOption(this, 576, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Edit Respawn\nTime", 0x11u); SetupOptionsTriggerPopup::addOption(this, 573, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Boost Slide", 0xBu); SetupOptionsTriggerPopup::addOption(this, 593, (int)&v12); std::string::~string((int)&v12); v12 = 0; v13 = 0; v14 = 0; std::string::__init(&v12, "Respawn Time", 0xCu); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, v8[0] * 0.5, *((float *)this + 179) - 5.0); SetupTriggerPopup::createValueControlAdvanced( this, 574, &v12, v10, 1061997773, 0, 1, 10, 0, 1065353216, 1092616192, 1, 0, 1, 1, 0); std::string::~string((int)&v12); SetupTriggerPopup::toggleLimitValue(this, 574, 1); v6 = *((float *)this + 139); *((float *)this + 179) = *((float *)this + 179) - 30.0; SetupTriggerPopup::createPageButtons(this, (float)(v6 * 0.5) + 15.0, 1); SetupTriggerPopup::goToPage(this, 0, 0); SetupTriggerPopup::postSetup(this); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source