//
// SetupAreaTintTriggerPopup::init from 0x6917a8 to 0x691dea (1602 bytes)
//
// 1 xrefs:
// > SetupAreaTintTriggerPopup::create @ 0x691e98
//
// 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:12 +0000
//
GameManager *__fastcall SetupAreaTintTriggerPopup::init(
cocos2d::CCObject **this,
EnterEffectObject *a2,
cocos2d::CCArray *a3)
{
GameManager *v4; // r10
cocos2d::CCDirector *MultiTriggerItemsDefaultHorizontal; // r0
const char *v6; // r1
int v7; // r0
int v8; // r0
void (__fastcall *v9)(int, _BYTE *); // r11
void (__fastcall *v10)(cocos2d::CCObject **, int, bool); // r4
float v11; // s15
void (__fastcall *v12)(cocos2d::CCObject **, int, bool); // r4
float v13; // s15
cocos2d::CCPoint *v15; // [sp+34h] [bp-60h]
int v16; // [sp+3Ch] [bp-58h]
float v17[2]; // [sp+44h] [bp-50h] BYREF
_BYTE v18[8]; // [sp+4Ch] [bp-48h] BYREF
_BYTE v19[8]; // [sp+54h] [bp-40h] BYREF
_BYTE v20[8]; // [sp+5Ch] [bp-38h] BYREF
_BYTE v21[8]; // [sp+64h] [bp-30h] BYREF
_DWORD v22[2]; // [sp+6Ch] [bp-28h] BYREF
int v23[3]; // [sp+74h] [bp-20h] BYREF
int v24; // [sp+80h] [bp-14h] BYREF
int v25; // [sp+84h] [bp-10h]
int v26; // [sp+88h] [bp-Ch]
v4 = SetupTriggerPopup::init((SetupTriggerPopup *)this, a2, a3, 420.0, 280.0, (_BYTE *)&dword_0 + 1, 0.0);
if ( v4 )
{
(*((void (__fastcall **)(cocos2d::CCObject **))*this + 170))(this);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Area Tint Trigger", 0x11u);
SetupTriggerPopup::addTitle((int)this, (unsigned __int8 *)&v24);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "OK", 2u);
SetupTriggerPopup::addCloseButton((int)this, (int)&v24);
std::string::~string((int)&v24);
memset(v23, 0, sizeof(v23));
std::string::__init(v23, "Help", 4u);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(
&v24,
"Tints objects using Target Group ID within an area around Center Group ID. The area can be specifi"
"ed by the arrow buttons and Length (for size).\n"
"You can specify how much the objects in the area tint depending on how close they are to the center.\n"
"Check the other pages for more settings.",
0x136u);
SetupTriggerPopup::addHelpButton((int)this, (int)v23, (int)&v24, 1065353216);
std::string::~string((int)&v24);
std::string::~string((int)v23);
MultiTriggerItemsDefaultHorizontal = (cocos2d::CCDirector *)SetupTriggerPopup::createMultiTriggerItemsDefaultHorizontal((SetupTriggerPopup *)this);
cocos2d::CCDirector::sharedDirector(MultiTriggerItemsDefaultHorizontal);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v17);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v18, v17[0] * 0.5, (float)(v17[1] * 0.5) + 95.0);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Length", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -75.0, 0.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
222,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 75.0, 0.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
223,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
0,
2,
6,
0,
0,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Offset", 6u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -75.0, -25.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
220,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "+-", 2u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 75.0, -25.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
221,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
0,
2,
6,
0,
-1027080192,
1120403456,
0,
0,
1,
2,
0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Color Channel:", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, -75.0, -75.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
260,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
1,
3,
6,
1,
0,
1120403456,
0,
1,
0,
2,
0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Tint", 4u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v21, 75.0, -75.0);
cocos2d::CCPoint::operator+(v22, v18, v21);
SetupTriggerPopup::createValueControlAdvanced(
this,
265,
(unsigned __int8 *)&v24,
(int)v22,
1059481190,
0,
1,
6,
0,
0,
1065353216,
0,
1,
1,
2,
0);
std::string::~string((int)&v24);
v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_hsvBtn_001.png", v6);
v22[0] = SetupAreaTintTriggerPopup::onHSV;
v22[1] = 0;
v8 = CCMenuItemSpriteExtra::create(v7, 0, (int)this, (int)SetupAreaTintTriggerPopup::onHSV, 0);
*(this + 181) = (cocos2d::CCObject *)v8;
(*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 111) + 228))(*(this + 111), v8);
v16 = (int)*(this + 181);
v9 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 92);
v15 = *(this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v19, 0.0, -75.0);
cocos2d::CCPoint::operator+(v20, v18, v19);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v21, v15);
v9(v16, v21);
SetupTriggerPopup::addObjectToGroup(this, *(this + 181), 2u);
SetupTriggerPopup::addObjectToPage(this, *(this + 181), 0);
SetupAreaTintTriggerPopup::updateHSVButton((SetupAreaTintTriggerPopup *)this);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Main\nOnly", 9u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, -140.0, -125.0);
cocos2d::CCPoint::operator+(v21, v18, v20);
SetupTriggerPopup::createToggleValueControl((int)this, 65, (int)&v24, (const cocos2d::CCPoint *)v21, 0, 0, 0, 1.0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "Secondary\nOnly", 0xEu);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, -20.0, -125.0);
cocos2d::CCPoint::operator+(v21, v18, v20);
SetupTriggerPopup::createToggleValueControl((int)this, 66, (int)&v24, (const cocos2d::CCPoint *)v21, 0, 0, 0, 1.0);
std::string::~string((int)&v24);
v24 = 0;
v25 = 0;
v26 = 0;
std::string::__init(&v24, "HSV", 3u);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, 100.0, -125.0);
cocos2d::CCPoint::operator+(v21, v18, v20);
SetupTriggerPopup::createToggleValueControl((int)this, 278, (int)&v24, (const cocos2d::CCPoint *)v21, 0, 0, 0, 1.0);
std::string::~string((int)&v24);
SetupAreaMoveTriggerPopup::addAreaDefaultControls(this, 3010);
(*((void (__fastcall **)(cocos2d::CCObject **))*this + 179))(this);
SetupTriggerPopup::createPageButtons((SetupTriggerPopup *)this, (float)(*((float *)this + 139) * 0.5) + 15.0, 1u);
v10 = *((void (__fastcall **)(cocos2d::CCObject **, int, bool))*this + 169);
v11 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCObject **, int))*this + 183))(this, 278));
v10(this, 1, v11 == 0.0);
v12 = *((void (__fastcall **)(cocos2d::CCObject **, int, bool))*this + 169);
v13 = COERCE_FLOAT((*((int (__fastcall **)(cocos2d::CCObject **, int))*this + 183))(this, 278));
v12(this, 2, v13 != 0.0);
SetupTriggerPopup::goToPage(this, nullptr, 0);
*((_BYTE *)this + 568) = 0;
}
return v4;
}