// // SetupCameraOffsetTrigger::init from 0x501dbc to 0x502a54 (3224 bytes) // // 1 xrefs: // > SetupCameraOffsetTrigger::create @ 0x502bde // // 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 // bool SetupCameraOffsetTrigger::init(SetupCameraOffsetTrigger *a1, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 cocos2d::CCLabelBMFont *v5; // r5 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 const char *v7; // r1 ButtonSprite *v8; // r0 CCMenuItemSpriteExtra *v9; // r0 CCMenuItemSpriteExtra *v10; // r5 cocos2d::CCMenu *m_buttonMenu; // r8 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 cocos2d::CCLabelBMFont *v13; // r5 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r8 cocos2d::CCNode *v15; // r10 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 const char *v17; // r2 CCTextInputNode *v18; // r0 CCTextInputNode *m_moveTimeInput; // r5 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r6 int v21; // r0 CCTextInputNode *v22; // r5 CCTextInputNode *v23; // r3 Slider *v24; // r0 Slider *m_moveTimeSlider; // r5 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 float v27; // s15 cocos2d::CCLabelBMFont *v28; // r9 void (__fastcall *v29)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 cocos2d::CCLabelBMFont *v30; // r0 cocos2d::CCLabelBMFont *m_cameraEasingLabel; // r5 void (__fastcall *v32)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 int v33; // r11 cocos2d::CCSprite *v34; // r10 cocos2d::CCLabelBMFont *v35; // r0 cocos2d::CCSprite_vtbl *v36; // r3 cocos2d::CCLabelBMFont *m_cameraEasingRateLabel; // r11 void (__fastcall *v38)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r5 int v39; // r5 CCMenuItemSpriteExtra *v40; // r0 cocos2d::CCMenu *v41; // r11 void (__fastcall *v42)(char *, cocos2d::CCRect *); // r10 int v43; // r9 cocos2d::CCSprite *v44; // r9 CCMenuItemSpriteExtra *v45; // r9 cocos2d::CCSprite *v46; // r9 CCMenuItemSpriteExtra *v47; // r9 cocos2d::CCMenu *v48; // r11 const cocos2d::CCPoint *v49; // r10 void (*v50)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // r3 float v51; // s15 cocos2d::CCLabelBMFont *v52; // r11 void (__fastcall *v53)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCNode *v54; // r11 void (__fastcall *v55)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r7 int m_offsetY; // r7 const char *v57; // r2 CCTextInputNode *v58; // r6 void (__fastcall *v59)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 int v60; // r0 CCTextInputNode_vtbl *v61; // r3 Slider *v62; // r6 void (__fastcall *v63)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float v64; // r1 int v65; // r3 bool v66; // r10 cocos2d::CCMenu *v67; // r7 int m_targetMode; // r3 cocos2d::CCMenu *v69; // r7 bool v70; // r10 cocos2d::CCLayer *v71; // r6 CCMenuItemToggler *m_yOnlyToggler; // r3 cocos2d::CCLayer *m_mainLayer; // r6 _BOOL4 v75; // [sp+38h] [bp-DCh] char *m_cameraEasingRateButton; // [sp+40h] [bp-D4h] char *v77; // [sp+40h] [bp-D4h] char *v78; // [sp+40h] [bp-D4h] const cocos2d::CCPoint *v79; // [sp+44h] [bp-D0h] cocos2d::CCMenu *v80; // [sp+4Ch] [bp-C8h] cocos2d::ccColor3B v81; // [sp+60h] [bp-B4h] cocos2d::ccColor3B v82; // [sp+64h] [bp-B0h] char v83[4]; // [sp+68h] [bp-ACh] BYREF cocos2d::CCSize v84; // [sp+6Ch] [bp-A8h] BYREF cocos2d::CCPoint v85; // [sp+74h] [bp-A0h] BYREF cocos2d::CCSize v86; // [sp+7Ch] [bp-98h] BYREF void (*v87)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+84h] [bp-90h] unsigned int v88; // [sp+88h] [bp-8Ch] cocos2d::CCPoint v89; // [sp+8Ch] [bp-88h] BYREF cocos2d::CCSize v90; // [sp+94h] [bp-80h] BYREF cocos2d::CCPoint v91; // [sp+9Ch] [bp-78h] BYREF int v92; // [sp+A4h] [bp-70h] int v93; // [sp+A8h] [bp-6Ch] void (*v94)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+ACh] [bp-68h] int v95; // [sp+B0h] [bp-64h] void (*v96)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+B4h] [bp-60h] int v97; // [sp+B8h] [bp-5Ch] void (*v98)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+BCh] [bp-58h] int v99; // [sp+C0h] [bp-54h] void (*v100)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+C4h] [bp-50h] int v101; // [sp+C8h] [bp-4Ch] void (*v102)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // [sp+CCh] [bp-48h] unsigned int v103; // [sp+D0h] [bp-44h] cocos2d::CCPoint v104; // [sp+D4h] [bp-40h] BYREF cocos2d::CCRect v105; // [sp+DCh] [bp-38h] BYREF cocos2d::CCRect v106; // [sp+ECh] [bp-28h] BYREF cocos2d::CCRect v107; // [sp+FCh] [bp-18h] BYREF cocos2d::CCRect v108; // 0:r2.8,8:^0.8 cocos2d::CCRect v109; // 0:r2.8,8:^0.8 v75 = SetupTriggerPopup::init(a1, a2, a3, 430.0, 310.0, 1); if ( v75 ) { v4 = cocos2d::CCDirector::sharedDirector(); cocos2d::CCDirector::getWinSize(&v84, v4); v5 = cocos2d::CCLabelBMFont::create(); setPosition = v5->setPosition; cocos2d::CCPoint::CCPoint( &v107.origin, v84.width * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v84.height * 0.5)) - 15.0); setPosition(v5, &v107.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1058642330); v8 = ButtonSprite::create((ButtonSprite *)"OK", v7); v92 = 660; v93 = 1; v9 = CCMenuItemSpriteExtra::create(v8, nullptr, (cocos2d::SEL_MenuHandler)((unsigned int)a1 | 0x29400000000LL)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v9); sub_776584((int)&v106, "Help"); sub_776584( (int)&v107, "Lets you change the camera by a given value in X and Y direction. Offset X and Offset Y specify how much respectively."); v10 = InfoAlertButton::create((int)&v106, (int)&v107, 1065353216); sub_774008(&v107); sub_774008(&v106); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v10); m_buttonMenu = a1->m_buttonMenu; v12 = v10->setPosition; cocos2d::CCPoint::CCPoint( &v106.origin, (float)((float)(v84.width * 0.5) - (float)(a1->m_width * 0.5)) + 18.0, (float)((float)(a1->m_height * 0.5) + (float)(v84.height * 0.5)) - 18.0); cocos2d::CCNode::convertToNodeSpace(&v107.origin, m_buttonMenu, &v106.origin); v12(v10, &v107.origin); a1->determineStartValues(a1); cocos2d::CCPoint::CCPoint(&v85, v84.width * 0.5, (float)(v84.height * 0.5) - 60.0); v13 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v13->setScale)(v13, 1060320051); v13->setPosition(v13, &v85); setAnchorPoint = v13->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v107.origin, 1.0, 0.5); setAnchorPoint(v13, &v107.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v13); cocos2d::CCRect::CCRect(&v105, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v107, &v105); v15 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v107, v108); ((void (__fastcall *)(cocos2d::CCNode *, int))v15->__vftable[1].~CCNode_0)(v15, 100); cocos2d::CCSize::CCSize(&v86, 70.0, 30.0); v15->setContentSize(v15, &v86); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v15, -1); v16 = v15->setPosition; cocos2d::CCPoint::CCPoint(&v106.origin, 45.0, 0.0); cocos2d::CCPoint::operator+(&v107, &v85, &v106); v16(v15, &v107.origin); if ( a1->m_moveTime == -99999.0 ) v17 = "Mixed"; else v17 = "Num"; v18 = CCTextInputNode::create(50.0, 40.0, v17, "Thonburi"); a1->m_moveTimeInput = v18; ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, const char *))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v18, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); m_moveTimeInput = a1->m_moveTimeInput; v20 = m_moveTimeInput->setPosition; v21 = (int)v15->getPosition(v15); v20(m_moveTimeInput, (const cocos2d::CCPoint *)v21); CCTextInputNode::setMaxLabelScale(a1->m_moveTimeInput, 0.6); CCTextInputNode::setMaxLabelWidth(a1->m_moveTimeInput, 200.0); a1->m_moveTimeInput->m_textField->setVisible(a1->m_moveTimeInput->m_textField, 0); v22 = a1->m_moveTimeInput; v22->m_maxLabelLength = 4; sub_776584((int)&v107, "0123456789."); CCTextInputNode::setAllowedChars((int)v22, (int)&v107); sub_774008(&v107); *(_WORD *)&v81.r = -21896; v81.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_moveTimeInput, v81); CCTextInputNode::setLabelPlaceholderScale(a1->m_moveTimeInput, 0.5); v23 = a1->m_moveTimeInput; v23->m_numberInput = 1; v23->m_delegate = &a1->TextInputDelegate; a1->m_moveTimeInput->setTag(a1->m_moveTimeInput, 3); v95 = 0; v94 = SetupCameraOffsetTrigger::sliderChanged; v24 = (Slider *)Slider::create(a1, (unsigned int)SetupCameraOffsetTrigger::sliderChanged, 0, 0.8); a1->m_moveTimeSlider = v24; Slider::setBarVisibility(v24, 0); a1->m_mainLayer->addChild(a1->m_mainLayer, a1->m_moveTimeSlider); m_moveTimeSlider = a1->m_moveTimeSlider; v26 = m_moveTimeSlider->setPosition; cocos2d::CCPoint::CCPoint(&v106.origin, 0.0, -32.0); cocos2d::CCPoint::operator+(&v107, &v85, &v106); v26(m_moveTimeSlider, &v107.origin); v27 = a1->m_moveTime / 10.0; if ( v27 >= 1.0 ) { v27 = 1.0; } else if ( v27 <= 0.0 ) { v27 = 0.0; } Slider::setValue(a1->m_moveTimeSlider, v27); SetupCameraOffsetTrigger::updateDurLabel(a1, 0); v28 = cocos2d::CCLabelBMFont::create(); v29 = v28->setPosition; cocos2d::CCPoint::CCPoint(&v107.origin, v84.width * 0.5, (float)(v84.height * 0.5) + 10.0); v29(v28, &v107.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v28); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v28->setScale)(v28, 1061997773); v30 = cocos2d::CCLabelBMFont::create(); a1->m_cameraEasingLabel = v30; a1->m_mainLayer->addChild(a1->m_mainLayer, v30); m_cameraEasingLabel = a1->m_cameraEasingLabel; v32 = m_cameraEasingLabel->setPosition; v33 = (int)v28->getPosition(v28); cocos2d::CCPoint::CCPoint(&v106.origin, 0.0, -30.0); cocos2d::CCPoint::operator+(&v107, v33, &v106); v32(m_cameraEasingLabel, &v107.origin); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_cameraEasingLabel->setScale)( a1->m_cameraEasingLabel, 1060320051); v34 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); v34->setColor(v34, &stru_9ACD24); v34->setOpacity(v34, 100); v35 = cocos2d::CCLabelBMFont::create(); v36 = v34->cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; a1->m_cameraEasingRateLabel = v35; v36->addChild(v34, v35); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_cameraEasingRateLabel->setScaleX)( a1->m_cameraEasingRateLabel, 1052770304); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))a1->m_cameraEasingRateLabel->setScaleY)( a1->m_cameraEasingRateLabel, 1061158912); m_cameraEasingRateLabel = a1->m_cameraEasingRateLabel; v38 = m_cameraEasingRateLabel->setPosition; cocos2d::CCNode::convertToNodeSpace(&v104, v34, &stru_AC736C); cocos2d::CCPoint::CCPoint(&v106.origin, 1.0, 1.5); cocos2d::CCPoint::operator+(&v107, &v104, &v106); v38(m_cameraEasingRateLabel, &v107.origin); v39 = 0; ((void (__fastcall *)(cocos2d::CCSprite *, int))v34->setScaleX)(v34, 1061997773); ((void (__fastcall *)(cocos2d::CCSprite *, int))v34->setScaleY)(v34, 1053609165); v97 = 0; v96 = SetupCameraOffsetTrigger::onEasingRate; v40 = CCMenuItemSpriteExtra::create( v34, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupCameraOffsetTrigger::onEasingRate, (unsigned int)a1)); a1->m_cameraEasingRateButton = v40; a1->m_buttonMenu->addChild(a1->m_buttonMenu, v40); v41 = a1->m_buttonMenu; m_cameraEasingRateButton = (char *)a1->m_cameraEasingRateButton; v42 = *(void (__fastcall **)(char *, cocos2d::CCRect *))(*(_DWORD *)m_cameraEasingRateButton + 92); v43 = (int)v28->getPosition(v28); cocos2d::CCPoint::CCPoint(&v104, 55.0, -2.0); cocos2d::CCPoint::operator+(&v106, v43, &v104); cocos2d::CCNode::convertToNodeSpace(&v107.origin, v41, &v106.origin); v42(m_cameraEasingRateButton, &v107); CCMenuItemSpriteExtra::setSizeMult(a1->m_cameraEasingRateButton, 1.2); SetupCameraOffsetTrigger::updateEasingRateLabel(a1); SetupCameraOffsetTrigger::toggleEasingRateVisibility(a1); v44 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v44, 1); ((void (__fastcall *)(cocos2d::CCSprite *, int))v44->setScale)(v44, 1060320051); v99 = 0; v98 = SetupCameraOffsetTrigger::onEasing; v45 = CCMenuItemSpriteExtra::create( v44, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupCameraOffsetTrigger::onEasing, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v45); v77 = (char *)v45->setPosition; v80 = a1->m_buttonMenu; v79 = a1->m_cameraEasingLabel->getPosition(a1->m_cameraEasingLabel); cocos2d::CCPoint::CCPoint(&v104, 100.0, 0.0); cocos2d::CCPoint::operator+(&v106, v79, &v104); cocos2d::CCNode::convertToNodeSpace(&v107.origin, v80, &v106.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *))v77)(v45, &v107); CCMenuItemSpriteExtra::setSizeMult(v45, 1.4); v45->setTag(v45, 1); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v46->setScale)(v46, 1060320051); v100 = SetupCameraOffsetTrigger::onEasing; v101 = 0; v47 = CCMenuItemSpriteExtra::create( v46, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__(SetupCameraOffsetTrigger::onEasing, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v47); v48 = a1->m_buttonMenu; v78 = (char *)v47->setPosition; v49 = a1->m_cameraEasingLabel->getPosition(a1->m_cameraEasingLabel); cocos2d::CCPoint::CCPoint(&v104, -100.0, 0.0); cocos2d::CCPoint::operator+(&v106, v49, &v104); cocos2d::CCNode::convertToNodeSpace(&v107.origin, v48, &v106.origin); ((void (__fastcall *)(CCMenuItemSpriteExtra *, cocos2d::CCRect *))v78)(v47, &v107); CCMenuItemSpriteExtra::setSizeMult(v47, 1.4); v47->setTag(v47, 0); v50 = SetupCameraOffsetTrigger::sliderXChanged; while ( 1 ) { v88 = 0; v51 = -105.0; v87 = v50; if ( v39 ) v51 = 105.0; cocos2d::CCPoint::CCPoint(&v89, v51 + (float)(v84.width * 0.5), (float)(v84.height * 0.5) + 95.0); v52 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v52->setScale)(v52, 1060320051); v52->setPosition(v52, &v89); v53 = v52->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v107.origin, 1.0, 0.5); v53(v52, &v107.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v52); cocos2d::CCRect::CCRect(&v106, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v107, &v106); v54 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v107, v109); ((void (__fastcall *)(cocos2d::CCNode *, int))v54->__vftable[1].~CCNode_0)(v54, 100); cocos2d::CCSize::CCSize(&v90, 70.0, 30.0); v54->setContentSize(v54, &v90); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v54, -1); v55 = v54->setPosition; cocos2d::CCPoint::CCPoint(&v91, 45.0, 0.0); cocos2d::CCPoint::operator+(&v107, &v89, &v91); v55(v54, &v107.origin); if ( v39 ) m_offsetY = a1->m_offsetY; else m_offsetY = a1->m_offsetX; v57 = "Mixed"; if ( m_offsetY != -99999 ) v57 = "Num"; v58 = CCTextInputNode::create(60.0, 40.0, v57, "Thonburi"); ((void (__fastcall *)(cocos2d::CCLayer *, CCTextInputNode *, int, void (__fastcall *)(cocos2d::CCNode *__hidden, cocos2d::CCNode *, int), int *, const char *))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v58, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); v59 = v58->setPosition; v60 = (int)v54->getPosition(v54); v59(v58, (const cocos2d::CCPoint *)v60); CCTextInputNode::setMaxLabelScale(v58, 0.6); CCTextInputNode::setMaxLabelWidth(v58, 200.0); v58->m_textField->setVisible(v58->m_textField, 0); v58->m_maxLabelLength = 5; sub_776584((int)&v107, "0123456789-"); CCTextInputNode::setAllowedChars((int)v58, (int)&v107); sub_774008(&v107); *(_WORD *)&v82.r = -21896; v82.b = -16; CCTextInputNode::setLabelPlaceholderColor(v58, v82); CCTextInputNode::setLabelPlaceholderScale(v58, 0.5); v58->m_numberInput = 1; v58->m_delegate = &a1->TextInputDelegate; v61 = v58->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v39 ) { a1->m_offsetYInput = v58; v61->setTag(v58, 1); } else { a1->m_offsetXInput = v58; v61->setTag(v58, 0); } v62 = (Slider *)Slider::create(a1, (unsigned int)v87, v88, 0.8); Slider::setBarVisibility(v62, 0); a1->m_mainLayer->addChild(a1->m_mainLayer, v62); v63 = v62->setPosition; cocos2d::CCPoint::CCPoint(&v91, 0.0, -32.0); cocos2d::CCPoint::operator+(&v107, &v89, &v91); v63(v62, &v107.origin); v64 = m_offsetY == -99999 ? 0.5 : SetupCameraOffsetTrigger::sliderValueFromPos(a1, m_offsetY); Slider::setValue(v62, v64); if ( v39 ) { a1->m_offsetYSlider = v62; sub_776584((int)v83, "Y Only"); v104.y = 0.0; m_targetMode = a1->m_targetMode; LODWORD(v104.x) = SetupCameraOffsetTrigger::onTargetMode; v69 = a1->m_buttonMenu; v70 = m_targetMode == 2; cocos2d::CCPoint::CCPoint(&v91, v89.x - 60.0, v89.y - 60.0); m_mainLayer = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v107.origin, 8.0, 0.0); a1->m_yOnlyToggler = GameToolbox::createToggleButton( (int)v83, LODWORD(v104.x), LODWORD(v104.y), v70, v69, &v91, a1, m_mainLayer, 0.6, 0.4, 0.0, (int)&v107, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(v83); a1->m_yOnlyToggler->setTag(a1->m_yOnlyToggler, 2); m_yOnlyToggler = a1->m_yOnlyToggler; } else { a1->m_offsetXSlider = v62; sub_776584((int)v83, "X Only"); v65 = a1->m_targetMode; v102 = SetupCameraOffsetTrigger::onTargetMode; v103 = 0; v66 = v65 == 1; v67 = a1->m_buttonMenu; cocos2d::CCPoint::CCPoint(&v91, v89.x - 60.0, v89.y - 60.0); v71 = a1->m_mainLayer; cocos2d::CCPoint::CCPoint(&v107.origin, 8.0, 0.0); a1->m_xOnlyToggler = GameToolbox::createToggleButton( (int)v83, (unsigned int)v102, v103, v66, v67, &v91, a1, v71, 0.6, 0.4, 0.0, (int)&v107, (int)"bigFont.fnt", 0, 0, nullptr); sub_774008(v83); a1->m_xOnlyToggler->setTag(a1->m_xOnlyToggler, 1); m_yOnlyToggler = a1->m_xOnlyToggler; } m_yOnlyToggler->m_notClickable = 1; v50 = SetupCameraOffsetTrigger::sliderYChanged; if ( v39 ) break; v39 = 1; } SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupCameraOffsetTrigger::updateValueXLabel(a1); SetupCameraOffsetTrigger::updateValueYLabel(a1); SetupCameraOffsetTrigger::updateEasingLabel(a1); a1->m_disableTextDelegate = 0; } return v75; }
GD Web Decomp Icon

GD Web Decomp

Raw Source