//
// SetupTriggerPopup::createCustomToggleValueControl from 0x5425f4 to 0x54271a (294 bytes)
//
// 68 xrefs:
// > CustomizeObjectSettingsPopup::init @ 0x463eee
// > CustomizeObjectSettingsPopup::init @ 0x463f38
// > CustomizeObjectSettingsPopup::init @ 0x463f82
// > SetupMoveCommandPopup::init @ 0x4b93a2
// > SetupMoveCommandPopup::init @ 0x4b93e2
// > SetItemIDLayer::init @ 0x4f25ca
// > SetItemIDLayer::init @ 0x4f2616
// > SetItemIDLayer::init @ 0x4f267e
// > SetItemIDLayer::init @ 0x4f26cc
// > SetItemIDLayer::init @ 0x4f271a
// > SetupPickupTriggerPopup::init @ 0x4f8812
// > SetupPickupTriggerPopup::init @ 0x4f885e
// > SetupRotatePopup::init @ 0x4f8f12
// > SetupRotatePopup::init @ 0x4f8f6e
// > SetupRotatePopup::init @ 0x4f8fac
// > SetupStaticCameraPopup::init @ 0x504072
// > SetupStaticCameraPopup::init @ 0x5040be
// > SetupOptionsTriggerPopup::addOption @ 0x540416
// > SetupOptionsTriggerPopup::addOption @ 0x54046a
// > SetupGameplayOffsetPopup::init @ 0x54a148
// > SetupGameplayOffsetPopup::init @ 0x54a194
// > SetupAdvFollowPopup::init @ 0x55f9e6
// > SetupAdvFollowPopup::init @ 0x55fa32
// > SetupAdvFollowPopup::init @ 0x55fa7e
// > SetupKeyframePopup::init @ 0x573ec4
// > SetupKeyframePopup::init @ 0x573f16
// > UIObjectSettingsPopup::init @ 0x579910
// > UIObjectSettingsPopup::init @ 0x57995a
// > UIObjectSettingsPopup::init @ 0x5799a4
// > UIObjectSettingsPopup::init @ 0x5799f2
// > UIObjectSettingsPopup::init @ 0x579b48
// > UIObjectSettingsPopup::init @ 0x579b94
// > UIObjectSettingsPopup::init @ 0x579bde
// > UIObjectSettingsPopup::init @ 0x579c28
// > SetupItemEditTriggerPopup::init @ 0x57ad38
// > SetupItemEditTriggerPopup::init @ 0x57ad82
// > SetupItemEditTriggerPopup::init @ 0x57adcc
// > SetupItemEditTriggerPopup::init @ 0x57ae16
// > SetupItemEditTriggerPopup::init @ 0x57ae60
// > SetupItemEditTriggerPopup::init @ 0x57af86
// > SetupItemEditTriggerPopup::init @ 0x57afd2
// > SetupItemEditTriggerPopup::init @ 0x57b02a
// > SetupItemEditTriggerPopup::init @ 0x57b07c
// > SetupItemEditTriggerPopup::init @ 0x57b0ca
// > SetupItemEditTriggerPopup::init @ 0x57b1e8
// > SetupItemEditTriggerPopup::init @ 0x57b236
// > SetupItemEditTriggerPopup::init @ 0x57b284
// > SetupItemCompareTriggerPopup::init @ 0x57bf7e
// > SetupItemCompareTriggerPopup::init @ 0x57bfc8
// > SetupItemCompareTriggerPopup::init @ 0x57c012
// > SetupItemCompareTriggerPopup::init @ 0x57c05c
// > SetupItemCompareTriggerPopup::init @ 0x57c0a6
// > SetupItemCompareTriggerPopup::init @ 0x57c1da
// > SetupItemCompareTriggerPopup::init @ 0x57c224
// > SetupItemCompareTriggerPopup::init @ 0x57c276
// > SetupItemCompareTriggerPopup::init @ 0x57c2c6
// > SetupItemCompareTriggerPopup::init @ 0x57c310
// > SetupStopTriggerPopup::init @ 0x57e43a
// > SetupStopTriggerPopup::init @ 0x57e48a
// > SetupStopTriggerPopup::init @ 0x57e4d4
// > SelectEventLayer::addToggle @ 0x57f096
// > SetupSequenceTriggerPopup::init @ 0x580a9a
// > SetupSequenceTriggerPopup::init @ 0x580ae8
// > SetupSequenceTriggerPopup::init @ 0x580b32
// > SetupSequenceTriggerPopup::init @ 0x580bd2
// > SetupSequenceTriggerPopup::init @ 0x580c1e
// > SetupTimerControlTriggerPopup::init @ 0x594614
// > SetupTimerControlTriggerPopup::init @ 0x594660
//
// 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
//
cocos2d::CCArray *__fastcall SetupTriggerPopup::createCustomToggleValueControl(
SetupTriggerPopup *this,
intptr_t a2,
bool a3,
int a4,
std::string a5,
cocos2d::CCPoint a6,
int a7,
int a8)
{
cocos2d::CCArray *PageContainer; // r9
float v11; // r1
float v12; // r2
cocos2d::CCArray *v13; // r0
cocos2d::CCArray *v14; // r5
cocos2d::CCLayer *m_mainLayer; // r10
CCMenuItemToggler *v16; // r8
cocos2d::CCArray *GroupContainer; // [sp+30h] [bp-3Ch]
cocos2d::CCMenu *m_buttonMenu; // [sp+34h] [bp-38h]
_BYTE v22[4]; // [sp+40h] [bp-2Ch] BYREF
cocos2d::CCPoint v23; // [sp+44h] [bp-28h] BYREF
cocos2d::CCPoint v24; // [sp+4Ch] [bp-20h] BYREF
cocos2d::CCPoint v25; // [sp+54h] [bp-18h] BYREF
unsigned int v26; // [sp+5Ch] [bp-10h]
unsigned int v27; // [sp+60h] [bp-Ch]
PageContainer = SetupTriggerPopup::getPageContainer(this, a7);
GroupContainer = SetupTriggerPopup::getGroupContainer(this, a8);
if ( LOBYTE(a6.y) )
{
v11 = 0.0;
v12 = 4.0;
}
else
{
v11 = 8.0;
v12 = 0.0;
}
v13 = (cocos2d::CCArray *)cocos2d::CCPoint::CCPoint(&v23, v11, v12);
v14 = (cocos2d::CCArray *)cocos2d::CCArray::create(v13);
sub_775C20(v22);
v26 = 728;
v27 = 1;
m_buttonMenu = this->m_buttonMenu;
cocos2d::CCPoint::CCPoint(&v24, (const cocos2d::CCPoint *)LODWORD(a6.x));
m_mainLayer = this->m_mainLayer;
cocos2d::CCPoint::CCPoint(&v25, &v23);
v16 = GameToolbox::createToggleButton(
(int)v22,
v26,
v27,
a3,
m_buttonMenu,
&v24,
this,
m_mainLayer,
0.7,
0.35,
110.0,
(int)&v25,
(int)"bigFont.fnt",
SLOBYTE(a6.y),
0,
v14);
sub_774008(v22);
v16->setTag(v16, a2);
if ( a4 )
v16->m_notClickable = 1;
cocos2d::CCDictionary::setObject(this->m_customValueToggles, v16, a2);
cocos2d::CCArray::addObjectsFromArray(PageContainer, v14);
if ( a8 > 0 )
cocos2d::CCArray::addObjectsFromArray(GroupContainer, v14);
return v14;
}