//
// SetupCameraOffsetTrigger::init from 0x632e04 to 0x633afa (3318 bytes)
//
// 1 xrefs:
// > SetupCameraOffsetTrigger::create @ 0x633d08
//
// 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:18 +0000
//
cocos2d::CCDirector *__fastcall SetupCameraOffsetTrigger::init(
SetupCameraOffsetTrigger *this,
CameraTriggerGameObject *a2,
cocos2d::CCArray *a3)
{
cocos2d::CCDirector *v4; // r0
const char *v5; // r2
int v6; // r5
void (__fastcall *v7)(int, _BYTE *); // r6
const char *v8; // r1
ButtonSprite *v9; // r0
int v10; // r0
int v11; // r10
const cocos2d::CCPoint *v12; // r6
void (__fastcall *v13)(int, _BYTE *); // r5
const char *v14; // r2
int v15; // r6
void (__fastcall *v16)(int, _BYTE *); // r5
int v17; // r9
void (__fastcall *v18)(int, _BYTE *); // r5
char *v19; // r2
int *v20; // r0
int v21; // r5
void (__fastcall *v22)(int, int); // r6
int v23; // r0
int v24; // r6
Slider *v25; // r0
int v26; // r5
void (__fastcall *v27)(int, _BYTE *); // r6
float v28; // s15
int v29; // r8
void (__fastcall *v30)(int, _BYTE *); // r5
int v31; // r0
int v32; // r9
void (__fastcall *v33)(int, _BYTE *); // r5
int v34; // r11
const char *v35; // r1
const cocos2d::CCPoint *v36; // r9
const char *v37; // r2
int v38; // r0
int v39; // r11
void (__fastcall *v40)(int, _BYTE *); // r5
int v41; // r5
int v42; // r0
int v43; // r11
void (__fastcall *v44)(int, _BYTE *); // r9
int v45; // r8
const char *v46; // r1
int v47; // r1
const char *v48; // r1
cocos2d::CCSprite *v49; // r8
int v50; // r8
int v51; // r11
const char *v52; // r1
int v53; // r8
int v54; // r8
void (__fastcall *v55)(int, _BYTE *); // r9
int v56; // r11
char *v57; // r8
unsigned int (__fastcall *v58)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // r3
float v59; // s15
const char *v60; // r2
int v61; // r11
void (__fastcall *v62)(int, _BYTE *); // r6
int v63; // r8
void (__fastcall *v64)(int, _BYTE *); // r7
int v65; // r10
char *v66; // r2
int *v67; // r7
void (__fastcall *v68)(int *, int); // r6
int v69; // r0
int v70; // r1
int *v71; // r0
Slider *v72; // r9
void (__fastcall *v73)(Slider *, _BYTE *); // r6
float v74; // r1
int v75; // r3
_BOOL4 v76; // r9
const cocos2d::CCPoint *v77; // r11
int v78; // r3
_BOOL4 v79; // r9
const cocos2d::CCPoint *v80; // r11
int v81; // r6
int v82; // r3
int v83; // r6
const char *v85; // [sp+8h] [bp-11Ch]
const char *v86; // [sp+8h] [bp-11Ch]
cocos2d::CCPoint *v87; // [sp+34h] [bp-F0h]
cocos2d::CCPoint *v88; // [sp+34h] [bp-F0h]
cocos2d::CCDirector *v89; // [sp+3Ch] [bp-E8h]
void (__fastcall *v90)(int, _BYTE *); // [sp+44h] [bp-E0h]
cocos2d::CCPoint *v91; // [sp+4Ch] [bp-D8h]
int v92; // [sp+5Ch] [bp-C8h]
int v93; // [sp+60h] [bp-C4h]
float v94; // [sp+64h] [bp-C0h] BYREF
float v95; // [sp+68h] [bp-BCh]
_BYTE v96[8]; // [sp+6Ch] [bp-B8h] BYREF
_BYTE v97[8]; // [sp+74h] [bp-B0h] BYREF
unsigned int (__fastcall *v98)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+7Ch] [bp-A8h]
int v99; // [sp+80h] [bp-A4h]
float v100; // [sp+84h] [bp-A0h] BYREF
float v101; // [sp+88h] [bp-9Ch]
_BYTE v102[8]; // [sp+8Ch] [bp-98h] BYREF
_BYTE v103[8]; // [sp+94h] [bp-90h] BYREF
int v104; // [sp+9Ch] [bp-88h]
int v105; // [sp+A0h] [bp-84h]
int (__fastcall *v106)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+A4h] [bp-80h]
int v107; // [sp+A8h] [bp-7Ch]
int (__fastcall *v108)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+ACh] [bp-78h]
int v109; // [sp+B0h] [bp-74h]
int (__fastcall *v110)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+B4h] [bp-70h]
int v111; // [sp+B8h] [bp-6Ch]
int (__fastcall *v112)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+BCh] [bp-68h]
int v113; // [sp+C0h] [bp-64h]
int (__fastcall *v114)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+C4h] [bp-60h]
int v115; // [sp+C8h] [bp-5Ch]
int (__fastcall *v116)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+CCh] [bp-58h] BYREF
int v117; // [sp+D0h] [bp-54h]
int v118[3]; // [sp+D4h] [bp-50h] BYREF
int v119; // [sp+E0h] [bp-44h] BYREF
int v120; // [sp+E4h] [bp-40h]
int v121; // [sp+E8h] [bp-3Ch]
_BYTE v122[16]; // [sp+ECh] [bp-38h] BYREF
_BYTE v123[16]; // [sp+FCh] [bp-28h] BYREF
_BYTE v124[16]; // [sp+10Ch] [bp-18h] BYREF
v4 = (cocos2d::CCDirector *)SetupTriggerPopup::init(this, a2, a3, 430.0, 310.0, 1, 0.0);
v89 = v4;
if ( v4 )
{
cocos2d::CCDirector::sharedDirector(v4);
cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)&v94);
v6 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup camera offset", "bigFont.fnt", v5);
v7 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v6 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v124,
v94 * 0.5,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v95 * 0.5)) - 15.0);
v7(v6, v124);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v6);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v6 + 80))(v6, 1058642330);
v9 = ButtonSprite::create((ButtonSprite *)"OK", v8);
v104 = 684;
v105 = 1;
v10 = CCMenuItemSpriteExtra::create((int)v9, 0, (int)this, 684, 1);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v10);
memset(v118, 0, sizeof(v118));
std::string::__init(v118, "Help", 4u);
v119 = 0;
v120 = 0;
v121 = 0;
std::string::__init(
&v119,
"Lets you change the camera by a given value in X and Y direction. Offset X and Offset Y specify how much respectively.",
0x7Eu);
v11 = InfoAlertButton::create((char *)v118, (int)&v119, 1065353216);
std::string::~string((int)&v119);
std::string::~string((int)v118);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v11);
v12 = *((const cocos2d::CCPoint **)this + 111);
v13 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v11 + 92);
cocos2d::CCPoint::CCPoint(
(cocos2d::CCPoint *)v123,
(float)((float)(v94 * 0.5) - (float)(*((float *)this + 139) * 0.5)) + 18.0,
(float)((float)(*((float *)this + 140) * 0.5) + (float)(v95 * 0.5)) - 18.0);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v12);
v13(v11, v124);
(*(void (__fastcall **)(SetupCameraOffsetTrigger *))(*(_DWORD *)this + 680))(this);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v96, v94 * 0.5, (float)(v95 * 0.5) - 60.0);
v15 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Move Time: ", "goldFont.fnt", v14);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v15 + 80))(v15, 1060320051);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 92))(v15, v96);
v16 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v15 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 1.0, 0.5);
v16(v15, v124);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v15);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v122, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, (const cocos2d::CCRect *)v122);
v17 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v124);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v17 + 456))(v17, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v97, 70.0, 30.0);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 160))(v17, v97);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v17, -1);
v18 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v17 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 45.0, 0.0);
cocos2d::CCPoint::operator+(v124, v96, v123);
v18(v17, v124);
if ( *((float *)this + 180) == -99999.0 )
v19 = "Mixed";
else
v19 = "Num";
v20 = CCTextInputNode::create(
(CCTextInputNode *)0x42480000,
40.0,
v19,
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v85);
*((_DWORD *)this + 178) = v20;
(*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v20, 20);
v21 = *((_DWORD *)this + 178);
v22 = *(void (__fastcall **)(int, int))(*(_DWORD *)v21 + 92);
v23 = (*(int (__fastcall **)(int))(*(_DWORD *)v17 + 96))(v17);
v22(v21, v23);
CCTextInputNode::setMaxLabelScale(*((_DWORD *)this + 178), 0.6);
CCTextInputNode::setMaxLabelWidth(*((_DWORD *)this + 178), 200.0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 178) + 416) + 172))(
*(_DWORD *)(*((_DWORD *)this + 178) + 416),
0);
*(_DWORD *)(*((_DWORD *)this + 178) + 424) = 4;
v24 = *((_DWORD *)this + 178);
v119 = 0;
v120 = 0;
v121 = 0;
std::string::__init(&v119, "0123456789.", 0xBu);
CCTextInputNode::setAllowedChars(v24, (unsigned __int8 *)&v119);
std::string::~string((int)&v119);
LOWORD(v92) = -21896;
BYTE2(v92) = -16;
CCTextInputNode::setLabelPlaceholderColor(*((_DWORD *)this + 178), v92);
CCTextInputNode::setLabelPlaceholderScale(*((_DWORD *)this + 178), 0.5);
*(_BYTE *)(*((_DWORD *)this + 178) + 324) = 1;
*(_DWORD *)(*((_DWORD *)this + 178) + 420) = (char *)this + 440;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 178) + 36))(*((_DWORD *)this + 178), 3);
v107 = 0;
v106 = SetupCameraOffsetTrigger::sliderChanged;
v25 = (Slider *)Slider::create((int)this, (int)SetupCameraOffsetTrigger::sliderChanged, 0, 0.8);
*((_DWORD *)this + 179) = v25;
Slider::setBarVisibility(v25, 0);
(*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 115) + 228))(
*((_DWORD *)this + 115),
*((_DWORD *)this + 179));
v26 = *((_DWORD *)this + 179);
v27 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v26 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 0.0, -32.0);
cocos2d::CCPoint::operator+(v124, v96, v123);
v27(v26, v124);
v28 = *((float *)this + 180) / 10.0;
if ( v28 >= 1.0 )
{
v28 = 1.0;
}
else if ( v28 <= 0.0 )
{
v28 = 0.0;
}
Slider::setValue(*((Slider **)this + 179), v28);
SetupCameraOffsetTrigger::updateDurLabel(this, nullptr);
v29 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Easing", "goldFont.fnt", "goldFont.fnt");
v30 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v29 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, v94 * 0.5, (float)(v95 * 0.5) + 10.0);
v30(v29, v124);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v29);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v29 + 80))(v29, 1061997773);
v31 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)" ", "bigFont.fnt", "bigFont.fnt");
*((_DWORD *)this + 181) = v31;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v31);
v32 = *((_DWORD *)this + 181);
v33 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v32 + 92);
v34 = (*(int (__fastcall **)(int))(*(_DWORD *)v29 + 96))(v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 0.0, -30.0);
cocos2d::CCPoint::operator+(v124, v34, v123);
v33(v32, v124);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 181) + 80))(*((_DWORD *)this + 181), 1060320051);
v36 = (const cocos2d::CCPoint *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_colorBtn_001.png",
v35);
(*(void (__fastcall **)(const cocos2d::CCPoint *, void *))(*(_DWORD *)v36 + 480))(v36, &unk_BEEEA0);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v36 + 456))(v36, 100);
v38 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"0", "bigFont.fnt", v37);
*((_DWORD *)this + 185) = v38;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v36 + 228))(v36, v38);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 185) + 64))(*((_DWORD *)this + 185), 1052770304);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 185) + 72))(*((_DWORD *)this + 185), 1061158912);
v39 = *((_DWORD *)this + 185);
v40 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v39 + 92);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v116, v36);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v123, 1.0, 1.5);
cocos2d::CCPoint::operator+(v124, &v116, v123);
v40(v39, v124);
v41 = 0;
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v36 + 64))(v36, 1061997773);
(*(void (__fastcall **)(const cocos2d::CCPoint *, int))(*(_DWORD *)v36 + 72))(v36, 1053609165);
v109 = 0;
v108 = SetupCameraOffsetTrigger::onEasingRate;
v42 = CCMenuItemSpriteExtra::create((int)v36, 0, (int)this, (int)SetupCameraOffsetTrigger::onEasingRate, 0);
*((_DWORD *)this + 184) = v42;
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v42);
v43 = *((_DWORD *)this + 184);
v44 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v43 + 92);
v87 = *((cocos2d::CCPoint **)this + 111);
v45 = (*(int (__fastcall **)(int))(*(_DWORD *)v29 + 96))(v29);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 55.0, -2.0);
cocos2d::CCPoint::operator+(v123, v45, &v116);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v87);
v44(v43, v124);
CCMenuItemSpriteExtra::setSizeMult(*((_DWORD *)this + 184), 1.2);
SetupCameraOffsetTrigger::updateEasingRateLabel(this, v46);
SetupCameraOffsetTrigger::toggleEasingRateVisibility((GameToolbox **)this, v47);
v49 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName(
(cocos2d::CCSprite *)"GJ_arrow_01_001.png",
v48);
cocos2d::CCSprite::setFlipX(v49, 1);
(*(void (__fastcall **)(cocos2d::CCSprite *, int))(*(_DWORD *)v49 + 80))(v49, 1060320051);
v111 = 0;
v110 = SetupCameraOffsetTrigger::onEasing;
v50 = CCMenuItemSpriteExtra::create((int)v49, 0, (int)this, (int)SetupCameraOffsetTrigger::onEasing, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v50);
v90 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v50 + 92);
v91 = *((cocos2d::CCPoint **)this + 111);
v51 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 181) + 96))(*((_DWORD *)this + 181));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, 100.0, 0.0);
cocos2d::CCPoint::operator+(v123, v51, &v116);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v91);
v90(v50, v124);
CCMenuItemSpriteExtra::setSizeMult(v50, 1.4);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v50 + 36))(v50, 1);
v53 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v52);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v53 + 80))(v53, 1060320051);
v112 = SetupCameraOffsetTrigger::onEasing;
v113 = 0;
v54 = CCMenuItemSpriteExtra::create(v53, 0, (int)this, (int)SetupCameraOffsetTrigger::onEasing, 0);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 111) + 228))(*((_DWORD *)this + 111), v54);
v55 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v54 + 92);
v88 = *((cocos2d::CCPoint **)this + 111);
v56 = (*(int (__fastcall **)(_DWORD))(**((_DWORD **)this + 181) + 96))(*((_DWORD *)this + 181));
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v116, -100.0, 0.0);
cocos2d::CCPoint::operator+(v123, v56, &v116);
cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)v124, v88);
v55(v54, v124);
CCMenuItemSpriteExtra::setSizeMult(v54, 1.4);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v54 + 36))(v54, 0);
v57 = "Offset X:";
v58 = SetupCameraOffsetTrigger::sliderXChanged;
while ( 1 )
{
v99 = 0;
v59 = -105.0;
v98 = v58;
if ( v41 )
v59 = 105.0;
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v100, v59 + (float)(v94 * 0.5), (float)(v95 * 0.5) + 95.0);
v61 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v57, "goldFont.fnt", v60);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v61 + 80))(v61, 1060320051);
(*(void (__fastcall **)(int, float *))(*(_DWORD *)v61 + 92))(v61, &v100);
v62 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v61 + 148);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 1.0, 0.5);
v62(v61, v124);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v61);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v123, 0.0, 0.0, 40.0, 40.0);
cocos2d::CCRect::CCRect((cocos2d::CCRect *)v124, (const cocos2d::CCRect *)v123);
v63 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v124);
(*(void (__fastcall **)(int, int))(*(_DWORD *)v63 + 456))(v63, 100);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)v102, 70.0, 30.0);
(*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v63 + 160))(v63, v102);
(*(void (__fastcall **)(_DWORD, int, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v63, -1);
v64 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v63 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 45.0, 0.0);
cocos2d::CCPoint::operator+(v124, &v100, v103);
v64(v63, v124);
if ( v41 )
v65 = *((_DWORD *)this + 191);
else
v65 = *((_DWORD *)this + 190);
v66 = "Mixed";
if ( v65 != -99999 )
v66 = "Num";
v67 = CCTextInputNode::create(
(CCTextInputNode *)0x42700000,
40.0,
v66,
"Thonburi",
(const char *)&dword_18,
"bigFont.fnt",
v86);
(*(void (__fastcall **)(_DWORD, int *, int))(**((_DWORD **)this + 115) + 232))(*((_DWORD *)this + 115), v67, 20);
v68 = *(void (__fastcall **)(int *, int))(*v67 + 92);
v69 = (*(int (__fastcall **)(int))(*(_DWORD *)v63 + 96))(v63);
v68(v67, v69);
CCTextInputNode::setMaxLabelScale((unsigned int)v67, 0.6);
CCTextInputNode::setMaxLabelWidth((unsigned int)v67, 200.0);
(*(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v67[104] + 172))(v67[104], 0);
v67[106] = 5;
v119 = 0;
v120 = 0;
v121 = 0;
std::string::__init(&v119, "0123456789-", 0xBu);
CCTextInputNode::setAllowedChars((int)v67, (unsigned __int8 *)&v119);
std::string::~string((int)&v119);
LOWORD(v93) = -21896;
BYTE2(v93) = -16;
CCTextInputNode::setLabelPlaceholderColor((unsigned int)v67, v93);
CCTextInputNode::setLabelPlaceholderScale((unsigned int)v67, 0.5);
v70 = 1;
*((_BYTE *)v67 + 324) = 1;
v67[105] = (int)this + 440;
if ( v41 )
{
*((_DWORD *)this + 187) = v67;
v71 = v67;
}
else
{
*((_DWORD *)this + 186) = v67;
v71 = v67;
v70 = 0;
}
(*(void (__fastcall **)(int *, int))(*v67 + 36))(v71, v70);
v72 = (Slider *)Slider::create((int)this, (int)v98, v99, 0.8);
Slider::setBarVisibility(v72, 0);
(*(void (__fastcall **)(_DWORD, Slider *))(**((_DWORD **)this + 115) + 228))(*((_DWORD *)this + 115), v72);
v73 = *(void (__fastcall **)(Slider *, _BYTE *))(*(_DWORD *)v72 + 92);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, 0.0, -32.0);
cocos2d::CCPoint::operator+(v124, &v100, v103);
v73(v72, v124);
v74 = v65 == -99999 ? 0.5 : COERCE_FLOAT(SetupCameraOffsetTrigger::sliderValueFromPos(this, v65));
Slider::setValue(v72, v74);
if ( v41 )
{
*((_DWORD *)this + 189) = v72;
v119 = 0;
v120 = 0;
v121 = 0;
std::string::__init(&v119, "Y Only", 6u);
v78 = *((_DWORD *)this + 192);
v116 = SetupCameraOffsetTrigger::onTargetMode;
v117 = 0;
v79 = v78 == 2;
v80 = *((const cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, v100 - 60.0, v101 - 60.0);
v83 = *((_DWORD *)this + 115);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 8.0, 0.0);
*((_DWORD *)this + 194) = GameToolbox::createToggleButton(
(int)&v119,
(int)v116,
v117,
v79,
v80,
(int)v103,
(int)this,
v83,
0.6,
0.4,
0.0,
(int)v124,
"bigFont.fnt",
0,
0,
nullptr);
std::string::~string((int)&v119);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 194) + 36))(*((_DWORD *)this + 194), 2);
v82 = *((_DWORD *)this + 194);
}
else
{
*((_DWORD *)this + 188) = v72;
v119 = 0;
v120 = 0;
v121 = 0;
std::string::__init(&v119, "X Only", 6u);
v75 = *((_DWORD *)this + 192);
v114 = SetupCameraOffsetTrigger::onTargetMode;
v115 = 0;
v76 = v75 == 1;
v77 = *((const cocos2d::CCPoint **)this + 111);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v103, v100 - 60.0, v101 - 60.0);
v81 = *((_DWORD *)this + 115);
cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v124, 8.0, 0.0);
*((_DWORD *)this + 193) = GameToolbox::createToggleButton(
(int)&v119,
(int)v114,
v115,
v76,
v77,
(int)v103,
(int)this,
v81,
0.6,
0.4,
0.0,
(int)v124,
"bigFont.fnt",
0,
0,
nullptr);
std::string::~string((int)&v119);
(*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 193) + 36))(*((_DWORD *)this + 193), 1);
v82 = *((_DWORD *)this + 193);
}
*(_BYTE *)(v82 + 309) = 1;
v58 = SetupCameraOffsetTrigger::sliderYChanged;
v57 = "Offset Y:";
if ( v41 )
break;
v41 = 1;
}
SetupTriggerPopup::createMultiTriggerItemsDefault(this);
SetupCameraOffsetTrigger::updateValueXLabel(this);
SetupCameraOffsetTrigger::updateValueYLabel(this);
SetupCameraOffsetTrigger::updateEasingLabel(this);
*((_BYTE *)this + 568) = 0;
}
return v89;
}