// // SetupRotateGameplayPopup::init from 0x54994c to 0x549e9e (1362 bytes) // // 1 xrefs: // > SetupRotateGameplayPopup::create @ 0x549f1e // // 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 SetupRotateGameplayPopup::init(SetupRotateGameplayPopup *a1, RotateGameplayGameObject *a2, cocos2d::CCArray *a3) { _BOOL4 v4; // r11 cocos2d::CCDirector *v5; // r0 void (__fastcall *toggleGroup)(SetupTriggerPopup *__hidden, int, bool); // r6 float v7; // r0 void (__fastcall *v8)(SetupTriggerPopup *__hidden, int, bool); // r6 float v9; // r0 const char *v11; // [sp+40h] [bp-3Ch] BYREF cocos2d::CCSize v12; // [sp+44h] [bp-38h] BYREF cocos2d::CCPoint v13; // [sp+4Ch] [bp-30h] BYREF cocos2d::CCPoint v14; // [sp+54h] [bp-28h] BYREF cocos2d::CCPoint v15; // [sp+5Ch] [bp-20h] BYREF cocos2d::CCPoint v16; // [sp+64h] [bp-18h] BYREF cocos2d::CCPoint v17; // [sp+6Ch] [bp-10h] BYREF v4 = SetupTriggerPopup::init(a1, a2, a3, 380.0, 280.0, 1); if ( v4 ) { SetupTriggerPopup::preSetup(a1); sub_776584((int)&v17, "Rotate Gameplay"); SetupTriggerPopup::addTitle((int)a1); sub_774008(&v17); sub_776584((int)&v17, "OK"); SetupTriggerPopup::addCloseButton((unsigned int)a1, (ButtonSprite **)&v17); sub_774008(&v17); sub_776584((int)&v16, "Help"); sub_776584( (int)&v17, "VelMod modifies the velocity after switching rotation.\n" "Override Velocity sets the velocity instead of multiplying.\n" "Change Channel allows you to specify which channel to switch to after rotating. Triggers in a given channe" "l will only be activated when the player is in that channel. You can use Channel Only to exclude gameplay " "rotation.\n" "The Rotate Gameplay trigger direction determines how the channel's triggers are sorted. Upwards means smal" "ler Y values are triggered first, right means smaller X values are triggered first, and so on.\n" "Instant Offset makes the camera update instantly when switching gameplay to the opposite direction."); SetupTriggerPopup::addHelpButton((int)a1, (int)&v16, (int)&v17, 1063675494); sub_774008(&v17); sub_774008(&v16); v5 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v12, v5); cocos2d::CCPoint::CCPoint(&v13, (float)(v12.width * 0.5) - 25.0, (float)(v12.height * 0.5) + 85.0); cocos2d::CCPoint::CCPoint(&v14, v12.width * 0.5, v13.y); sub_776584((int)&v15, "Edit\nVelocity"); cocos2d::CCPoint::CCPoint(&v16, -60.0, 0.0); cocos2d::CCPoint::operator+(&v17, &v13, &v16); SetupTriggerPopup::createToggleValueControl(a1, 169, (int)&v15, &v17, 0, 0, 0, 1.0); sub_774008(&v15); sub_776584((int)&v15, "Override\nVelocity"); cocos2d::CCPoint::CCPoint(&v16, 60.0, 0.0); cocos2d::CCPoint::operator+(&v17, &v13, &v16); SetupTriggerPopup::createToggleValueControl(a1, 584, (int)&v15, &v17, 0, 0, 169, 1.0); sub_774008(&v15); sub_776584((int)&v15, "VelModX:"); cocos2d::CCPoint::CCPoint(&v16, -80.0, -42.0); cocos2d::CCPoint::operator+(&v17, &v14, &v16); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 582, (int)&v15, &v17, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 169, 1, 2, 0); sub_774008(&v15); sub_776584((int)&v15, "Y:"); cocos2d::CCPoint::CCPoint(&v16, 80.0, -42.0); cocos2d::CCPoint::operator+(&v17, &v14, &v16); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 583, (int)&v15, &v17, (cocos2d::CCZone *)0x3F333333, 0, Float, 6, 0, (cocos2d::CCFloat *)0xBF800000, 1.0, 0, 169, 1, 2, 0); sub_774008(&v15); sub_776584((int)&v15, "Change\nChannel"); cocos2d::CCPoint::CCPoint(&v16, -60.0, -84.0); cocos2d::CCPoint::operator+(&v17, &v13, &v16); SetupTriggerPopup::createToggleValueControl(a1, 171, (int)&v15, &v17, 0, 0, 0, 1.0); sub_774008(&v15); sub_776584((int)&v15, "Channel\nOnly"); cocos2d::CCPoint::CCPoint(&v16, 60.0, -84.0); cocos2d::CCPoint::operator+(&v17, &v13, &v16); SetupTriggerPopup::createToggleValueControl(a1, 172, (int)&v15, &v17, 0, 0, 171, 1.0); sub_774008(&v15); cocos2d::CCPoint::CCPoint(&v17, 0.0, -146.0); cocos2d::CCPoint::operator+(&v15, &v14, &v17); sub_776584((int)&v16, "Target Channel:"); cocos2d::CCPoint::CCPoint(&v17, &v15); SetupTriggerPopup::createValueControlAdvanced( (unsigned int)a1, 173, (int)&v16, &v17, (cocos2d::CCZone *)0x3F4CCCCD, 1, Uint, 6, 1, nullptr, 9999.0, 0, 171, 0, 2, 0); sub_774008(&v16); cocos2d::CCPoint::CCPoint(&v16, 75.0, 0.0); cocos2d::CCPoint::operator+(&v17, &v15, &v16); sub_776584((int)&v11, (char *)&unk_939830); SetupTriggerPopup::createPlusButton(a1, 173, &v17, 1061997773, &v11, 0, 171); sub_774008(&v11); toggleGroup = a1->toggleGroup; v7 = COERCE_FLOAT(((int (__fastcall *)(SetupRotateGameplayPopup *, int))a1->getValue)(a1, 171)); toggleGroup(a1, 171, v7 != 0.0); v8 = a1->toggleGroup; v9 = COERCE_FLOAT(((int (__fastcall *)(SetupRotateGameplayPopup *, int))a1->getValue)(a1, 169)); v8(a1, 169, v9 != 0.0); sub_776584((int)&v16, "Instant\nOffset"); cocos2d::CCPoint::CCPoint( &v17, (float)((float)(a1->m_width * 0.5) + (float)(v12.width * 0.5)) - 72.0, (float)((float)(v12.height * 0.5) - (float)(a1->m_height * 0.5)) + 50.0); SetupTriggerPopup::createToggleValueControl(a1, 368, (int)&v16, &v17, 0, 0, 0, 1.0); sub_774008(&v16); sub_776584((int)&v16, "Dont\nSlide"); cocos2d::CCPoint::CCPoint( &v17, (float)((float)(a1->m_width * 0.5) + (float)(v12.width * 0.5)) - 72.0, (float)((float)((float)(v12.height * 0.5) - (float)(a1->m_height * 0.5)) + 50.0) + 30.0); SetupTriggerPopup::createToggleValueControl(a1, 585, (int)&v16, &v17, 0, 0, 0, 1.0); sub_774008(&v16); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupTriggerPopup::postSetup(a1); } return v4; }
GD Web Decomp Icon

GD Web Decomp

Raw Source