// // SetupCameraOffsetTrigger::init from 0xaaf170 to 0xab02d0 (4448 bytes) // // 2 xrefs: // > SetupCameraOffsetTrigger::create @ 0xab054c // > @ 0xf9490 // // This function is hookable on this platform (idp: arm, 32 bit: False, 64 bit: True! // // 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 13:00:56 +0000 // __int64 __fastcall SetupCameraOffsetTrigger::init( SetupCameraOffsetTrigger *this, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v5; // x0 const char *v6; // x2 __int64 v7; // x22 void (__fastcall *v8)(__int64, __int64 *); // x24 const char *v9; // x1 __int64 v10; // x2 __int64 v11; // x3 bool v12; // w4 __int64 v13; // x5 const char *v14; // x6 __int64 v15; // x0 __int64 v16; // x0 __int64 v17; // x24 cocos2d::CCNode *v18; // x25 void (__fastcall *v19)(__int64, __int64 *); // x28 const char *v20; // x2 __int64 v21; // x24 void (__fastcall *v22)(__int64, __int64 *); // x28 __int64 v23; // x24 void (__fastcall *v24)(__int64, __int64 *); // x26 const char *v25; // x4 char *v26; // x0 __int64 v27; // x0 __int64 v28; // x26 __int64 v29; // x0 __int64 (__fastcall *v30)(__int64); // x1 void (__fastcall *v31)(__int64, __int64); // x24 __int64 v32; // x0 __int64 v33; // x24 Slider *v34; // x0 __int64 v35; // x24 void (__fastcall *v36)(__int64, __int64 *); // x26 float v37; // s0 const char *v38; // x2 __int64 v39; // x27 void (__fastcall *v40)(__int64, __int64 *); // x26 const char *v41; // x2 __int64 v42; // x0 __int64 v43; // x26 const char *v44; // x1 cocos2d::CCNode *v45; // x26 const char *v46; // x2 __int64 v47; // x0 __int64 v48; // x28 __int64 v49; // x0 __int64 v50; // x26 __int64 v51; // x0 cocos2d::CCNode *v52; // x28 __int64 (__fastcall *v53)(__int64); // x1 void (__fastcall *v54)(__int64, __int64 *); // x27 const char *v55; // x1 cocos2d::CCSprite *v56; // x26 __int64 v57; // x26 void (__fastcall *v58)(__int64, __int64 *); // x28 const char *v59; // x1 __int64 v60; // x26 __int64 v61; // x24 cocos2d::CCNode *v62; // x27 void (__fastcall *v63)(__int64, __int64 *); // x26 __int64 v64; // x28 float v65; // s2 char *v66; // x24 float v67; // s0 __int64 (__fastcall *v68)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // x27 const char *v69; // x2 __int64 v70; // x24 void (__fastcall *v71)(__int64, __int64 *); // x26 __int64 v72; // x28 void (__fastcall *v73)(__int64, __int64 *); // x24 const char *v74; // x4 int v75; // w26 char *v76; // x0 __int64 v77; // x24 __int64 v78; // x0 __int64 (__fastcall *v79)(__int64); // x1 void (__fastcall *v80)(__int64, __int64); // x28 __int64 v81; // x0 Slider *v82; // x24 void (__fastcall *v83)(Slider *, __int64 *); // x27 float v84; // s0 unsigned __int8 v85; // w28 cocos2d::CCNode *v86; // x27 __int64 v87; // x26 CCMenuItemToggler *ToggleButton; // x0 char v89; // w1 unsigned __int8 v90; // w28 cocos2d::CCNode *v91; // x26 __int64 v92; // x27 CCMenuItemToggler *v93; // x0 char v94; // w1 cocos2d::CCNode *v95; // [xsp+D8h] [xbp+A8h] cocos2d::CCNode *v96; // [xsp+D8h] [xbp+A8h] __int64 v97; // [xsp+E0h] [xbp+B0h] void (__fastcall *v98)(__int64, __int64 *); // [xsp+E0h] [xbp+B0h] __int64 v99; // [xsp+E0h] [xbp+B0h] __int64 v100; // [xsp+E0h] [xbp+B0h] int v101; // [xsp+100h] [xbp+D0h] unsigned __int8 v102; // [xsp+107h] [xbp+D7h] int v103; // [xsp+108h] [xbp+D8h] int v104; // [xsp+118h] [xbp+E8h] int v105; // [xsp+120h] [xbp+F0h] __int64 v106; // [xsp+128h] [xbp+F8h] BYREF _BYTE v107[8]; // [xsp+130h] [xbp+100h] BYREF _BYTE v108[8]; // [xsp+138h] [xbp+108h] BYREF float v109; // [xsp+140h] [xbp+110h] BYREF float v110; // [xsp+144h] [xbp+114h] _BYTE v111[8]; // [xsp+148h] [xbp+118h] BYREF __int64 v112; // [xsp+150h] [xbp+120h] BYREF _BYTE v113[16]; // [xsp+158h] [xbp+128h] BYREF _QWORD v114[2]; // [xsp+168h] [xbp+138h] BYREF __int64 v115[2]; // [xsp+178h] [xbp+148h] BYREF __int64 v116[2]; // [xsp+188h] [xbp+158h] BYREF void *v117; // [xsp+198h] [xbp+168h] __int64 v118; // [xsp+1A0h] [xbp+170h] BYREF __int64 v119; // [xsp+1A8h] [xbp+178h] void *v120; // [xsp+1B0h] [xbp+180h] v102 = SetupTriggerPopup::init(this, a2, a3, 430.0, 310.0, 1, 0.0); if ( v102 ) { v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)v102); cocos2d::CCDirector::getWinSize(&v106, v5); v7 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Setup camera offset", "bigFont.fnt", v6); v8 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v7 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v115, *(float *)&v106 * 0.5, (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v106 + 1) * 0.5)) - 15.0); v8(v7, v115); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v7); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v7 + 160LL))(v7, 0.6); v15 = ButtonSprite::create((ButtonSprite *)"OK", v9, v10, v11, v12, v13, v14); v16 = CCMenuItemSpriteExtra::create(v15, 0, (__int64)this, 1368, 1); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v16); v116[0] = 0; v116[1] = 0; v117 = nullptr; std::string::__init(v116, "Help", 4u); v118 = 0; v119 = 0; v120 = nullptr; std::string::__init( &v118, "Lets you change the camera by a given value in X and Y direction. Offset X and Offset Y specify how much respectively.", 0x7Eu); v17 = InfoAlertButton::create((char *)v116, (char *)&v118, 1.0); if ( (v118 & 1) != 0 ) operator delete(v120); if ( (v116[0] & 1) != 0 ) operator delete(v117); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v17); v18 = *((cocos2d::CCNode **)this + 69); v19 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v17 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v114, 18.0 - (float)((float)(*((float *)this + 183) * 0.5) - (float)(*(float *)&v106 * 0.5)), (float)((float)(*((float *)this + 184) * 0.5) + (float)(*((float *)&v106 + 1) * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(v115, v18, (const cocos2d::CCPoint *)v114); v19(v17, v115); (*(void (__fastcall **)(SetupCameraOffsetTrigger *))(*(_QWORD *)this + 1360LL))(this); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v107, *(float *)&v106 * 0.5, (float)(*((float *)&v106 + 1) * 0.5) + -60.0); v21 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Move Time: ", "goldFont.fnt", v20); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v21 + 160LL))(v21, 0.7); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v21 + 184LL))(v21, v107); v22 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v21 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 1.0, 0.5); v22(v21, v115); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v21); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v113, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v115, (const cocos2d::CCRect *)v113); v23 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v115); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v23 + 912LL))(v23, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v108, 70.0, 30.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v23 + 320LL))(v23, v108); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v23, 0xFFFFFFFFLL); v24 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v23 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 45.0, 0.0); cocos2d::CCPoint::operator+(v115, v107); v24(v23, v115); if ( *((float *)this + 258) == -99999.0 ) v26 = "Mixed"; else v26 = "Num"; v27 = CCTextInputNode::create( (CCTextInputNode *)v26, 50.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v25); *((_QWORD *)this + 127) = v27; (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v27, 20); v28 = *((_QWORD *)this + 127); v29 = v23; v30 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v23 + 192LL); v31 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 184LL); v32 = v30(v29); v31(v28, v32); CCTextInputNode::setMaxLabelScale(*((CCTextInputNode **)this + 127), 0.6); CCTextInputNode::setMaxLabelWidth(*((CCTextInputNode **)this + 127), 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(*((_QWORD *)this + 127) + 576LL) + 344LL))( *(_QWORD *)(*((_QWORD *)this + 127) + 576LL), 0); *(_DWORD *)(*((_QWORD *)this + 127) + 592LL) = 4; v118 = 0; v33 = *((_QWORD *)this + 127); v119 = 0; v120 = nullptr; std::string::__init(&v118, "0123456789.", 0xBu); CCTextInputNode::setAllowedChars(v33, (__int64)&v118); if ( (v118 & 1) != 0 ) operator delete(v120); LOWORD(v104) = -21896; BYTE2(v104) = -16; CCTextInputNode::setLabelPlaceholderColor(*((_QWORD *)this + 127), v104); CCTextInputNode::setLabelPlaceholderScale(*((CCTextInputNode **)this + 127), 0.5); *(_BYTE *)(*((_QWORD *)this + 127) + 424LL) = 1; *(_QWORD *)(*((_QWORD *)this + 127) + 584LL) = (char *)this + 544; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 127) + 72LL))(*((_QWORD *)this + 127), 3); v34 = (Slider *)Slider::create((int)this, (int)SetupCameraOffsetTrigger::sliderChanged, 0, 0.8); *((_QWORD *)this + 128) = v34; Slider::setBarVisibility(v34); (*(void (__fastcall **)(_QWORD, _QWORD))(**((_QWORD **)this + 73) + 456LL))( *((_QWORD *)this + 73), *((_QWORD *)this + 128)); v35 = *((_QWORD *)this + 128); v36 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v35 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, -32.0); cocos2d::CCPoint::operator+(v115, v107); v36(v35, v115); v37 = *((float *)this + 258) / 10.0; if ( v37 < 1.0 ) { if ( v37 <= 0.0 ) v37 = 0.0; } else { v37 = 1.0; } v103 = 0; v101 = 1; Slider::setValue(*((Slider **)this + 128), v37); SetupCameraOffsetTrigger::updateDurLabel(this, 0); v39 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"Easing", "goldFont.fnt", v38); v40 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v39 + 184LL); cocos2d::CCPoint::CCPoint( (cocos2d::CCPoint *)v115, *(float *)&v106 * 0.5, (float)(*((float *)&v106 + 1) * 0.5) + 10.0); v40(v39, v115); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v39); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v39 + 160LL))(v39, 0.8); v42 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)&byte_11E1A70, "bigFont.fnt", v41); *((_QWORD *)this + 130) = v42; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v42); v43 = *((_QWORD *)this + 130); v95 = *(cocos2d::CCNode **)(*(_QWORD *)v43 + 184LL); v97 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 192LL))(v39); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 0.0, -30.0); cocos2d::CCPoint::operator+(v115, v97); ((void (__fastcall *)(__int64, __int64 *))v95)(v43, v115); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 130) + 160LL))(*((_QWORD *)this + 130), 0.7); v45 = (cocos2d::CCNode *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_colorBtn_001.png", v44); (*(void (__fastcall **)(cocos2d::CCNode *, void *))(*(_QWORD *)v45 + 960LL))(v45, &unk_117B870); (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v45 + 912LL))(v45, 100); v47 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)"0", "bigFont.fnt", v46); *((_QWORD *)this + 133) = v47; (*(void (__fastcall **)(cocos2d::CCNode *, __int64))(*(_QWORD *)v45 + 456LL))(v45, v47); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 133) + 128LL))(*((_QWORD *)this + 133), 0.375); (*(void (__fastcall **)(_QWORD, float))(**((_QWORD **)this + 133) + 144LL))(*((_QWORD *)this + 133), 0.75); v48 = *((_QWORD *)this + 133); v98 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v48 + 184LL); cocos2d::CCNode::convertToNodeSpace(&v112, v45, (const cocos2d::CCPoint *)&unk_155DCA8); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v114, 1.0, 1.5); cocos2d::CCPoint::operator+(v115, &v112); v98(v48, v115); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v45 + 128LL))(v45, 0.8); (*(void (__fastcall **)(cocos2d::CCNode *, float))(*(_QWORD *)v45 + 144LL))(v45, 0.4); v49 = CCMenuItemSpriteExtra::create( (__int64)v45, 0, (__int64)this, (__int64)SetupCameraOffsetTrigger::onEasingRate, 0); *((_QWORD *)this + 132) = v49; (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v49); v50 = *((_QWORD *)this + 132); v51 = v39; v52 = *((cocos2d::CCNode **)this + 69); v53 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v39 + 192LL); v54 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v50 + 184LL); v99 = v53(v51); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, 55.0, -2.0); cocos2d::CCPoint::operator+(v114, v99); cocos2d::CCNode::convertToNodeSpace(v115, v52, (const cocos2d::CCPoint *)v114); v54(v50, v115); CCMenuItemSpriteExtra::setSizeMult(*((_QWORD *)this + 132), 1.2); SetupCameraOffsetTrigger::updateEasingRateLabel(this); SetupCameraOffsetTrigger::toggleEasingRateVisibility(this); v56 = (cocos2d::CCSprite *)cocos2d::CCSprite::createWithSpriteFrameName( (cocos2d::CCSprite *)"GJ_arrow_01_001.png", v55); cocos2d::CCSprite::setFlipX(v56, 1); (*(void (__fastcall **)(cocos2d::CCSprite *, float))(*(_QWORD *)v56 + 160LL))(v56, 0.7); v57 = CCMenuItemSpriteExtra::create((__int64)v56, 0, (__int64)this, (__int64)SetupCameraOffsetTrigger::onEasing, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v57); v96 = *((cocos2d::CCNode **)this + 69); v58 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v57 + 184LL); v100 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, 100.0, 0.0); cocos2d::CCPoint::operator+(v114, v100); cocos2d::CCNode::convertToNodeSpace(v115, v96, (const cocos2d::CCPoint *)v114); v58(v57, v115); CCMenuItemSpriteExtra::setSizeMult(v57, 1.4); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v57 + 72LL))(v57, 1); v60 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"GJ_arrow_01_001.png", v59); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v60 + 160LL))(v60, 0.7); v61 = CCMenuItemSpriteExtra::create(v60, 0, (__int64)this, (__int64)SetupCameraOffsetTrigger::onEasing, 0); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 69) + 456LL))(*((_QWORD *)this + 69), v61); v62 = *((cocos2d::CCNode **)this + 69); v63 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v61 + 184LL); v64 = (*(__int64 (__fastcall **)(_QWORD))(**((_QWORD **)this + 130) + 192LL))(*((_QWORD *)this + 130)); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, -100.0, 0.0); cocos2d::CCPoint::operator+(v114, v64); cocos2d::CCNode::convertToNodeSpace(v115, v62, (const cocos2d::CCPoint *)v114); v63(v61, v115); CCMenuItemSpriteExtra::setSizeMult(v61, 1.4); (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v61 + 72LL))(v61, 0); while ( 1 ) { if ( v103 ) { v65 = 105.0; v66 = "Offset Y:"; v67 = *(float *)&v106 * 0.5; v68 = SetupCameraOffsetTrigger::sliderYChanged; } else { v66 = "Offset X:"; v68 = SetupCameraOffsetTrigger::sliderXChanged; v65 = -105.0; v67 = *(float *)&v106 * 0.5; } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v109, v67 + v65, (float)(*((float *)&v106 + 1) * 0.5) + 95.0); v70 = cocos2d::CCLabelBMFont::create((cocos2d::CCLabelBMFont *)v66, "goldFont.fnt", v69); (*(void (__fastcall **)(__int64, float))(*(_QWORD *)v70 + 160LL))(v70, 0.7); (*(void (__fastcall **)(__int64, float *))(*(_QWORD *)v70 + 184LL))(v70, &v109); v71 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v70 + 296LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 1.0, 0.5); v71(v70, v115); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v70); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v114, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect((cocos2d::CCRect *)v115, (const cocos2d::CCRect *)v114); v72 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v115); (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v72 + 912LL))(v72, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)v111, 70.0, 30.0); (*(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v72 + 320LL))(v72, v111); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v72, 0xFFFFFFFFLL); v73 = *(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v72 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, 45.0, 0.0); cocos2d::CCPoint::operator+(v115, &v109); v73(v72, v115); if ( v103 ) v75 = *((_DWORD *)this + 277); else v75 = *((_DWORD *)this + 276); if ( v75 == -99999 ) v76 = "Mixed"; else v76 = "Num"; v77 = CCTextInputNode::create( (CCTextInputNode *)v76, 60.0, 40.0, "Thonburi", (const char *)&off_18, "bigFont.fnt", v74); (*(void (__fastcall **)(_QWORD, __int64, __int64))(**((_QWORD **)this + 73) + 464LL))( *((_QWORD *)this + 73), v77, 20); v78 = v72; v79 = *(__int64 (__fastcall **)(__int64))(*(_QWORD *)v72 + 192LL); v80 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v77 + 184LL); v81 = v79(v78); v80(v77, v81); CCTextInputNode::setMaxLabelScale((CCTextInputNode *)v77, 0.6); CCTextInputNode::setMaxLabelWidth((CCTextInputNode *)v77, 200.0); (*(void (__fastcall **)(_QWORD, _QWORD))(**(_QWORD **)(v77 + 576) + 344LL))(*(_QWORD *)(v77 + 576), 0); *(_DWORD *)(v77 + 592) = 5; v118 = 0; v119 = 0; v120 = nullptr; std::string::__init(&v118, "0123456789-", 0xBu); CCTextInputNode::setAllowedChars(v77, (__int64)&v118); if ( (v118 & 1) != 0 ) operator delete(v120); LOBYTE(v105) = 120; *(_WORD *)((char *)&v105 + 1) = -3926; CCTextInputNode::setLabelPlaceholderColor(v77, v105); CCTextInputNode::setLabelPlaceholderScale((CCTextInputNode *)v77, 0.5); *(_QWORD *)(v77 + 584) = (char *)this + 544; *(_BYTE *)(v77 + 424) = 1; if ( v103 ) { *((_QWORD *)this + 135) = v77; (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v77 + 72LL))(v77, 1); } else { *((_QWORD *)this + 134) = v77; (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)v77 + 72LL))(v77, 0); } v82 = (Slider *)Slider::create((int)this, (int)v68, 0, 0.8); Slider::setBarVisibility(v82); (*(void (__fastcall **)(_QWORD, Slider *))(**((_QWORD **)this + 73) + 456LL))(*((_QWORD *)this + 73), v82); v83 = *(void (__fastcall **)(Slider *, __int64 *))(*(_QWORD *)v82 + 184LL); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, 0.0, -32.0); cocos2d::CCPoint::operator+(v115, &v109); v83(v82, v115); if ( v75 == -99999 ) v84 = 0.5; else v84 = SetupCameraOffsetTrigger::sliderValueFromPos(this, v75); Slider::setValue(v82, v84); if ( v103 ) { *((_QWORD *)this + 137) = v82; v118 = 0; v119 = 0; v120 = nullptr; std::string::__init(&v118, "Y Only", 6u); v85 = *((_DWORD *)this + 278) == 2; v86 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, v109 - 60.0, v110 - 60.0); v87 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 8.0, 0.0); ToggleButton = GameToolbox::createToggleButton( (__int64)&v118, (const char *)SetupCameraOffsetTrigger::onTargetMode, 0, v85, v86, (const cocos2d::CCPoint *)&v112, (__int64)this, v87, 0.6, 0.4, 0.0, (float *)v115, "bigFont.fnt", 0, 0, nullptr); v89 = v118; *((_QWORD *)this + 141) = ToggleButton; if ( (v89 & 1) != 0 ) { operator delete(v120); ToggleButton = *((CCMenuItemToggler **)this + 141); } (*(void (__fastcall **)(CCMenuItemToggler *, __int64))(*(_QWORD *)ToggleButton + 72LL))(ToggleButton, 2); *(_BYTE *)(*((_QWORD *)this + 141) + 393LL) = 1; if ( v101 == 2 ) { SetupTriggerPopup::createMultiTriggerItemsDefault(this); SetupCameraOffsetTrigger::updateValueXLabel(this); SetupCameraOffsetTrigger::updateValueYLabel(this); SetupCameraOffsetTrigger::updateEasingLabel(this); *((_BYTE *)this + 744) = 0; return v102; } } else { *((_QWORD *)this + 136) = v82; v118 = 0; v119 = 0; v120 = nullptr; std::string::__init(&v118, "X Only", 6u); v90 = *((_DWORD *)this + 278) == 1; v91 = *((cocos2d::CCNode **)this + 69); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v112, v109 - 60.0, v110 - 60.0); v92 = *((_QWORD *)this + 73); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v115, 8.0, 0.0); v93 = GameToolbox::createToggleButton( (__int64)&v118, (const char *)SetupCameraOffsetTrigger::onTargetMode, 0, v90, v91, (const cocos2d::CCPoint *)&v112, (__int64)this, v92, 0.6, 0.4, 0.0, (float *)v115, "bigFont.fnt", 0, 0, nullptr); v94 = v118; *((_QWORD *)this + 140) = v93; if ( (v94 & 1) != 0 ) operator delete(v120); (*(void (__fastcall **)(_QWORD, __int64))(**((_QWORD **)this + 140) + 72LL))(*((_QWORD *)this + 140), 1); *(_BYTE *)(*((_QWORD *)this + 140) + 393LL) = 1; } ++v103; ++v101; } } return v102; }
GD Web Decomp Icon

GD Web Decomp

Raw Source