//
// SetupAreaRotateTriggerPopup::init from 0x690d74 to 0x6911ec (1144 bytes)
//
// 1 xrefs:
// > SetupAreaRotateTriggerPopup::create @ 0x691262
//
// 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:56:11 +0000
//
GameManager *__fastcall SetupAreaRotateTriggerPopup::init(
SetupAreaRotateTriggerPopup *this,
EnterEffectObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r11
cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // r0
float v7[2]; // [sp+34h] [bp-40h] BYREF
_BYTE v8[8]; // [sp+3Ch] [bp-38h] BYREF
_BYTE v9[8]; // [sp+44h] [bp-30h] BYREF
_BYTE v10[8]; // [sp+4Ch] [bp-28h] BYREF
int v11[3]; // [sp+54h] [bp-20h] BYREF
int v12; // [sp+60h] [bp-14h] BYREF
int v13; // [sp+64h] [bp-10h]
int v14; // [sp+68h] [bp-Ch]
v4 = SetupTriggerPopup::init(this, a2, a3, 420.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
(*(void (__fastcall **)(SetupAreaRotateTriggerPopup *))(*(_DWORD *)this + 680))(this);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Area Rotate Trigger", 0x13u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v12);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&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,
"Rotates objects using Target Group ID within an area around Center Group ID. The area can be speci"
"fied by the arrow buttons and Length (for size).\n"
"You can specify how much the objects in the area rotate depending on how close they are to the center.\n"
"Check the other pages for more settings.",
0x13Au);
SetupTriggerPopup::addHelpButton((int)this, (int)v11, (int)&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 *)v7);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v8, v7[0] * 0.5, (float)(v7[1] * 0.5) + 95.0);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Length", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -75.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
222,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 75.0, 0.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
223,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Offset", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -75.0, -25.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
220,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 75.0, -25.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
221,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "Rotation", 8u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, -75.0, -50.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
270,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
1,
6,
0,
-1011613696,
1135869952,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
v12 = 0;
v13 = 0;
v14 = 0;
std::string::__init(&v12, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v9, 75.0, -50.0);
cocos2d::CCPoint::operator+(v10, v8, v9);
SetupTriggerPopup::createValueControlAdvanced(
(cocos2d::CCDictionary **)this,
271,
(unsigned __int8 *)&v12,
(int)v10,
1059481190,
0,
1,
6,
0,
0,
1127481344,
0,
0,
1,
2,
0);
std::string::~string((int)&v12);
SetupAreaMoveTriggerPopup::addAreaDefaultControls((cocos2d::CCArray **)this, 3007);
(*(void (__fastcall **)(SetupAreaRotateTriggerPopup *))(*(_DWORD *)this + 716))(this);
SetupTriggerPopup::createPageButtons(this, (float)(*((float *)this + 139) * 0.5) + 15.0, 1u);
SetupTriggerPopup::goToPage((cocos2d::CCArray **)this, nullptr, 0);
*((_BYTE *)this + 568) = 0;
}
return v4;
}