// // SetupCameraOffsetTrigger::init from 0x140415470 to 0x1404166a3 (4659 bytes) // // 2 xrefs: // > SetupCameraOffsetTrigger::create @ 0x140415429 // > @ 0x1406d8edc // // 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 // // Hidden C++ exception states: #wind=2 bool SetupCameraOffsetTrigger::init(SetupCameraOffsetTrigger *a1, CameraTriggerGameObject *a2, cocos2d::CCArray *a3) { bool result; // al __int64 v5; // rcx cocos2d::CCDirector *v6; // rax struct cocos2d::CCLabelBMFont *v7; // rdi cocos2d::CCLabelBMFont_vtbl *v8; // rbx const cocos2d::CCPoint *v9; // rax ButtonSprite *v10; // rax CCMenuItemSpriteExtra *v11; // rax char *v12; // rdi __int64 v13; // rbx struct cocos2d::CCPoint v14; // rax float v15; // xmm0_4 struct cocos2d::CCLabelBMFont *v16; // rdi float v17; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v18; // rbx const cocos2d::CCPoint *v19; // rax struct cocos2d::CCRect *v20; // rax struct cocos2d::extension::CCScale9Sprite *v21; // rdi __int64 v22; // rdx float v23; // xmm0_4 const char *v24; // r9 const char *v25; // r8 CCTextInputNode *v26; // rax CCTextInputNode_vtbl *v27; // rbx __int64 v28; // rax CCTextInputNode *m_moveTimeInput; // rcx CCTextInputNode *v30; // rcx std::string *p_m_allowedChars; // rcx CCTextInputNode *v32; // rcx CCTextInputNode *v33; // rcx TextInputDelegate *v34; // rcx const char *v35; // r8 Slider *v36; // rax float v37; // xmm0_4 float v38; // xmm0_4 float v39; // xmm1_4 struct cocos2d::CCLabelBMFont *v40; // rsi cocos2d::CCLabelBMFont_vtbl *v41; // rbx const cocos2d::CCPoint *v42; // rax cocos2d::CCLabelBMFont *v43; // rax float v44; // xmm0_4 __int64 v45; // rax struct cocos2d::CCSprite *v46; // rdi __int64 v47; // rdx cocos2d::CCLabelBMFont *v48; // rax float v49; // xmm0_4 struct cocos2d::CCPoint v50; // rax CCMenuItemSpriteExtra *v51; // rax float v52; // xmm0_4 __int64 v53; // rax CCMenuItemSpriteExtra_vtbl *v54; // rbx struct cocos2d::CCPoint v55; // rax cocos2d::CCSprite *v56; // rbx CCMenuItemSpriteExtra *v57; // rdi float v58; // xmm0_4 const cocos2d::CCPoint *v59; // rax CCMenuItemSpriteExtra_vtbl *v60; // rbx struct cocos2d::CCPoint v61; // rax struct cocos2d::CCSprite *v62; // rbx CCMenuItemSpriteExtra *v63; // rdi float v64; // xmm0_4 const cocos2d::CCPoint *v65; // rax CCMenuItemSpriteExtra_vtbl *v66; // rbx struct cocos2d::CCPoint v67; // rax int v68; // esi float v69; // xmm0_4 void (*v70)(SetupCameraOffsetTrigger *, cocos2d::CCObject *); // r13 const char *v71; // rbx struct cocos2d::CCLabelBMFont *v72; // rdi float v73; // xmm0_4 cocos2d::CCLabelBMFont_vtbl *v74; // rbx const cocos2d::CCPoint *v75; // rax struct cocos2d::CCRect *v76; // rax struct cocos2d::extension::CCScale9Sprite *v77; // r15 __int64 v78; // rdx float v79; // xmm0_4 const char *v80; // r9 int m_offsetY; // r12d const char *v82; // r8 CCTextInputNode *v83; // rdi CCTextInputNode_vtbl *v84; // rbx __int64 v85; // rax __int64 v86; // rdx const char *v87; // r8 Slider *v88; // rbx float v89; // xmm0_4 float v90; // xmm1_4 double v91; // xmm0_8 float *v92; // rax float *v93; // rbx struct cocos2d::CCPoint v94; // rax CCMenuItemToggler *ToggleButton; // rax double v96; // xmm0_8 float *v97; // rax float *v98; // rbx struct cocos2d::CCPoint v99; // rax CCMenuItemToggler *v100; // rax int v101; // [rsp+28h] [rbp-E0h] int v102; // [rsp+28h] [rbp-E0h] char *v103; // [rsp+88h] [rbp-80h] BYREF cocos2d::CCPoint v104; // [rsp+90h] [rbp-78h] BYREF float v105; // [rsp+98h] [rbp-70h] BYREF __int128 v106; // [rsp+A0h] [rbp-68h] BYREF __int64 v107; // [rsp+B0h] [rbp-58h] __int64 v108; // [rsp+B8h] [rbp-50h] struct cocos2d::CCPoint v109; // [rsp+C0h] [rbp-48h] BYREF char v110[8]; // [rsp+C8h] [rbp-40h] BYREF __int128 *v111; // [rsp+D0h] [rbp-38h] TextInputDelegate *v112; // [rsp+D8h] [rbp-30h] BYREF char Src[12]; // [rsp+E0h] [rbp-28h] BYREF int v114; // [rsp+ECh] [rbp-1Ch] __int64 v115; // [rsp+F0h] [rbp-18h] __int64 v116; // [rsp+F8h] [rbp-10h] _DWORD v117[4]; // [rsp+100h] [rbp-8h] BYREF __int64 v118; // [rsp+110h] [rbp+8h] __int64 v119; // [rsp+118h] [rbp+10h] cocos2d::CCRect v120; // [rsp+120h] [rbp+18h] BYREF __int64 v121; // [rsp+130h] [rbp+28h] __int64 v122; // [rsp+138h] [rbp+30h] cocos2d::CCSize v123; // [rsp+140h] [rbp+38h] BYREF cocos2d::CCSize v124; // [rsp+148h] [rbp+40h] BYREF cocos2d::CCRect v125; // [rsp+150h] [rbp+48h] BYREF cocos2d::CCRect v126[11]; // [rsp+190h] [rbp+88h] BYREF float v127; // [rsp+290h] [rbp+188h] result = SetupTriggerPopup::init(a1, a2, a3, 430.0, 310.0, 1); if ( result ) { v6 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v5); cocos2d::CCDirector::getWinSize(v6); v7 = cocos2d::CCLabelBMFont::create("Setup camera offset", (const char *)&qword_14052A4D8); v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, v127 * 0.5); v8->setPosition_0(v7, v9); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v7); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v7->setScale_0)(v7); v10 = ButtonSprite::create_1("OK", 0, 0, 1.0, 0, "goldFont.fnt", "GJ_button_01.png", 0.0); v11 = CCMenuItemSpriteExtra::create(v10, nullptr, a1, (cocos2d::SEL_MenuHandler *)sub_14009BEF0); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v11); v103 = (char *)&v120; v120 = 0; v121 = 0; v122 = 15; v120.origin = (cocos2d::CCPoint)sub_14003AA10(0x80u); v121 = 126; v122 = 127; strcpy( *(char **)&v120.origin, "Lets you change the camera by a given value in X and Y direction. Offset X and Offset Y specify how much respectively."); v106 = 0; v107 = 4; v108 = 15; strcpy((char *)&v106, "Help"); v12 = InfoAlertButton::create((__int64)&v106, (__int64)&v120); a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, (cocos2d::CCNode *)v12); v13 = *(_QWORD *)v12; cocos2d::CCPoint::CCPoint(a1->m_width * 0.5, (float)((float)(v127 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0); v14 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v112); (*(void (__fastcall **)(char *, struct cocos2d::CCPoint))(v13 + 184))(v12, v14); v15 = ((float (__fastcall *)(SetupCameraOffsetTrigger *))a1->determineStartValues)(a1); cocos2d::CCPoint::CCPoint(v15, v127 * 0.5); v16 = cocos2d::CCLabelBMFont::create("Move Time: ", "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v16->setScale_0)(v16); v17 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, char *))v16->setPosition_0)(v16, v110); v18 = v16->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v17, 1.0); v18->setAnchorPoint(v16, v19); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v16); cocos2d::CCRect::CCRect(v126, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v125, v126); v21 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v20); LOBYTE(v22) = 100; v21->setOpacity(&v21->cocos2d::CCRGBAProtocol, v22); cocos2d::CCSize::CCSize(&v123, 70.0, 30.0); v21->setContentSize(v21, &v123); v23 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v21, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v23, 45.0); cocos2d::CCPoint::operator+(v110, &v105); v21->setPosition_0(v21, (const cocos2d::CCPoint *)&v105); v25 = "Num"; if ( a1->m_moveTime == -99999.0 ) v25 = "Mixed"; v26 = CCTextInputNode::create(50.0, 40.0, v25, v24, v101, (const char *)&qword_14052A4D8); a1->m_moveTimeInput = v26; a1->m_mainLayer->addChild_0(a1->m_mainLayer, v26, 20); v27 = a1->m_moveTimeInput->__vftable; v28 = (__int64)v21->getPosition_0(v21); v27->setPosition_0(a1->m_moveTimeInput, (const cocos2d::CCPoint *)v28); m_moveTimeInput = a1->m_moveTimeInput; m_moveTimeInput->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(m_moveTimeInput); v30 = a1->m_moveTimeInput; v30->m_maxLabelWidth = 200.0; CCTextInputNode::refreshLabel(v30); a1->m_moveTimeInput->m_textField->setVisible(a1->m_moveTimeInput->m_textField, 0); a1->m_moveTimeInput->m_maxLabelLength = 4; v114 = 0; v115 = 11; v116 = 15; strcpy(Src, "0123456789."); v103 = Src; p_m_allowedChars = &a1->m_moveTimeInput->m_allowedChars; if ( p_m_allowedChars != (std::string *)Src ) sub_14003CCE0((void **)p_m_allowedChars, Src, 0xBu); sub_14003A830((__int64)Src); v32 = a1->m_moveTimeInput; *(_WORD *)&v32->m_placeholderColor.r = -21896; v32->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v32); v33 = a1->m_moveTimeInput; v33->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v33); a1->m_moveTimeInput->m_numberInput = 1; v34 = &a1->TextInputDelegate; if ( !a1 ) v34 = nullptr; v112 = v34; a1->m_moveTimeInput->m_delegate = v34; a1->m_moveTimeInput->setTag(a1->m_moveTimeInput, 3); v36 = Slider::create( a1, (cocos2d::SEL_MenuHandler *)GJFollowCommandLayer::sliderChanged, v35, "slidergroove.png", "sliderthumb.png", "sliderthumbsel.png", 0.80000001); a1->m_moveTimeSlider = v36; v36->m_sliderBar->setVisible(v36->m_sliderBar, 0); v37 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, a1->m_moveTimeSlider); cocos2d::CCPoint::CCPoint(v37, 0.0); cocos2d::CCPoint::operator+(v110, &v104); a1->m_moveTimeSlider->setPosition_0(a1->m_moveTimeSlider, &v104); v38 = a1->m_moveTime / 10.0; v39 = fminf(1.0, v38); if ( v39 < 0.0 ) v39 = 0.0; Slider::setValue(a1->m_moveTimeSlider, v39); GJFollowCommandLayer::updateDurLabel((__int64)a1, 0); v40 = cocos2d::CCLabelBMFont::create((const char *)&dword_14057CC60, "goldFont.fnt"); v41 = v40->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v38, v127 * 0.5); v41->setPosition_0(v40, v42); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v40); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v40->setScale_0)(v40); v43 = cocos2d::CCLabelBMFont::create(" ", (const char *)&qword_14052A4D8); a1->m_cameraEasingLabel = v43; v44 = ((float (__fastcall *)(cocos2d::CCLayer *, cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)( a1->m_mainLayer, v43); cocos2d::CCPoint::CCPoint(v44, 0.0); v45 = (__int64)v40->getPosition_0(v40); cocos2d::CCPoint::operator+(v45, &v104); a1->m_cameraEasingLabel->setPosition_0(a1->m_cameraEasingLabel, &v104); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_cameraEasingLabel->setScale_0)(a1->m_cameraEasingLabel); v46 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_colorBtn_001.png"); v46->setColor(&v46->cocos2d::CCRGBAProtocol, (const cocos2d::ccColor3B *)&unk_140529C38); LOBYTE(v47) = 100; v46->setOpacity(&v46->cocos2d::CCRGBAProtocol, v47); v48 = cocos2d::CCLabelBMFont::create("0", (const char *)&qword_14052A4D8); a1->m_cameraEasingRateLabel = v48; v46->addChild_1(v46, v48); ((void (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_cameraEasingRateLabel->setScaleX)(a1->m_cameraEasingRateLabel); v49 = ((float (__fastcall *)(cocos2d::CCLabelBMFont *))a1->m_cameraEasingRateLabel->setScaleY)(a1->m_cameraEasingRateLabel); cocos2d::CCPoint::CCPoint(v49, 1.0); v50 = cocos2d::CCNode::convertToNodeSpace(v46, &v109); ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator+)(v50, &v104); a1->m_cameraEasingRateLabel->setPosition_0(a1->m_cameraEasingRateLabel, &v104); ((void (__fastcall *)(struct cocos2d::CCSprite *))v46->setScaleX)(v46); ((void (__fastcall *)(struct cocos2d::CCSprite *))v46->setScaleY)(v46); v51 = CCMenuItemSpriteExtra::create( v46, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasingRate); a1->m_cameraEasingRateButton = v51; v52 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v51); cocos2d::CCPoint::CCPoint(v52, 55.0); v53 = (__int64)v40->getPosition_0(v40); cocos2d::CCPoint::operator+(v53, &v104); v54 = a1->m_cameraEasingRateButton->__vftable; v55 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v103); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v54->setPosition_0)( a1->m_cameraEasingRateButton, v55); HIDWORD(a1->m_cameraEasingRateButton->m_pfnSelector.adj) = 1067030938; SetupCameraOffsetTrigger::updateEasingRateLabel(a1); SetupCameraOffsetTrigger::toggleEasingRateVisibility(a1); v56 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); cocos2d::CCSprite::setFlipX(v56, 1); ((void (__fastcall *)(cocos2d::CCSprite *))v56->setScale_0)(v56); v57 = CCMenuItemSpriteExtra::create( v56, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasing); v58 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v57); cocos2d::CCPoint::CCPoint(v58, 100.0); v59 = a1->m_cameraEasingLabel->getPosition_0(a1->m_cameraEasingLabel); cocos2d::CCPoint::operator+(v59, &v104); v60 = v57->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v61 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v103); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v60->setPosition_0)(v57, v61); HIDWORD(v57->m_pfnSelector.adj) = 1068708659; v57->setTag(v57, 1); v62 = cocos2d::CCSprite::createWithSpriteFrameName("GJ_arrow_01_001.png"); ((void (__fastcall *)(struct cocos2d::CCSprite *))v62->setScale_0)(v62); v63 = CCMenuItemSpriteExtra::create( v62, nullptr, a1, (cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onEasing); v64 = ((float (__fastcall *)(cocos2d::CCMenu *, CCMenuItemSpriteExtra *))a1->m_buttonMenu->addChild_1)( a1->m_buttonMenu, v63); cocos2d::CCPoint::CCPoint(v64, -100.0); v65 = a1->m_cameraEasingLabel->getPosition_0(a1->m_cameraEasingLabel); cocos2d::CCPoint::operator+(v65, &v104); v66 = v63->cocos2d::CCMenuItemSprite::cocos2d::CCMenuItem::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v67 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)&v103); ((void (__fastcall *)(CCMenuItemSpriteExtra *, struct cocos2d::CCPoint))v66->setPosition_0)(v63, v67); HIDWORD(v63->m_pfnSelector.adj) = 1068708659; v63->setTag(v63, 0); v68 = 0; LABEL_11: v69 = -105.0; do { v70 = SetupCameraOffsetTrigger::sliderXChanged; if ( v68 ) v70 = SetupCameraOffsetTrigger::sliderYChanged; v71 = "Offset X:"; if ( v68 ) { v71 = "Offset Y:"; v69 = 105.0; } cocos2d::CCPoint::CCPoint(v69, (float)(v127 * 0.5) + v69); v72 = cocos2d::CCLabelBMFont::create(v71, "goldFont.fnt"); ((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v72->setScale_0)(v72); v73 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, float *))v72->setPosition_0)(v72, &v105); v74 = v72->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; cocos2d::CCPoint::CCPoint(v73, 1.0); v74->setAnchorPoint(v72, v75); a1->m_mainLayer->addChild_1(a1->m_mainLayer, v72); cocos2d::CCRect::CCRect(&v125, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v120, &v125); v77 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v76); LOBYTE(v78) = 100; v77->setOpacity(&v77->cocos2d::CCRGBAProtocol, v78); cocos2d::CCSize::CCSize(&v124, 70.0, 30.0); v77->setContentSize(v77, &v124); v79 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)( a1->m_mainLayer, v77, 0xFFFFFFFFLL); cocos2d::CCPoint::CCPoint(v79, 45.0); cocos2d::CCPoint::operator+(&v105, &v104); v77->setPosition_0(v77, &v104); if ( v68 ) m_offsetY = a1->m_offsetY; else m_offsetY = a1->m_offsetX; v82 = "Mixed"; if ( m_offsetY != -99999 ) v82 = "Num"; v83 = CCTextInputNode::create(60.0, 40.0, v82, v80, v102, (const char *)&qword_14052A4D8); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v83, 20); v84 = v83->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; v85 = (__int64)v77->getPosition_0(v77); v84->setPosition_0(v83, (const cocos2d::CCPoint *)v85); v83->m_maxLabelScale = 0.60000002; CCTextInputNode::refreshLabel(v83); v83->m_maxLabelWidth = 200.0; CCTextInputNode::refreshLabel(v83); v83->m_textField->setVisible(v83->m_textField, 0); v83->m_maxLabelLength = 5; v117[3] = 0; v118 = 11; v119 = 15; strcpy((char *)v117, "0123456789-"); v111 = (__int128 *)v117; if ( &v83->m_allowedChars != (std::string *)v117 ) sub_14003CCE0((void **)&v83->m_allowedChars, v117, 0xBu); sub_14003A830((__int64)v117); *(_WORD *)&v83->m_placeholderColor.r = -21896; v83->m_placeholderColor.b = -16; CCTextInputNode::refreshLabel(v83); v83->m_placeholderScale = 0.5; CCTextInputNode::refreshLabel(v83); v83->m_delegate = v112; v83->m_numberInput = 1; if ( v68 ) { a1->m_offsetYInput = v83; v86 = 1; } else { a1->m_offsetXInput = v83; v86 = 0; } v83->setTag(v83, v86); v88 = Slider::create( a1, (cocos2d::SEL_MenuHandler *)v70, v87, "slidergroove.png", "sliderthumb.png", "sliderthumbsel.png", 0.80000001); v88->m_sliderBar->setVisible(v88->m_sliderBar, 0); v89 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)(a1->m_mainLayer, v88); cocos2d::CCPoint::CCPoint(v89, 0.0); cocos2d::CCPoint::operator+(&v105, &v103); v88->setPosition_0(v88, (const cocos2d::CCPoint *)&v103); v90 = 0.5; if ( m_offsetY != -99999 ) { v90 = fminf(1.0, (float)(floorf((float)m_offsetY / 3.0) / 200.0) + 0.5); if ( v90 < 0.0 ) v90 = 0.0; } Slider::setValue(v88, v90); if ( v68 ) a1->m_offsetYSlider = v88; else a1->m_offsetXSlider = v88; v107 = 6; v108 = 15; v111 = &v106; v106 = 0; BYTE6(v106) = 0; if ( !v68 ) { qmemcpy(&v106, "X Only", 6); v91 = cocos2d::CCPoint::CCPoint(0.0, 8.0); v93 = v92; cocos2d::CCPoint::CCPoint(*(float *)&v91, v105 - 60.0); ToggleButton = GameToolbox::createToggleButton( (const char *)&v106, (cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onTargetMode, a1->m_targetMode == 1, a1->m_buttonMenu, v94, a1, a1->m_mainLayer, 0.60000002, 0.40000001, 0.0, v93, (const char *)&qword_14052A4D8, 0, 0, nullptr); a1->m_xOnlyToggler = ToggleButton; ToggleButton->setTag(ToggleButton, 1); BYTE1(a1->m_xOnlyToggler->m_onButton) = 1; v68 = 1; goto LABEL_11; } qmemcpy(&v106, "Y Only", 6); v96 = cocos2d::CCPoint::CCPoint(0.0, 8.0); v98 = v97; cocos2d::CCPoint::CCPoint(*(float *)&v96, v105 - 60.0); v100 = GameToolbox::createToggleButton( (const char *)&v106, (cocos2d::SEL_MenuHandler *)SetupCameraOffsetTrigger::onTargetMode, a1->m_targetMode == 2, a1->m_buttonMenu, v99, a1, a1->m_mainLayer, 0.60000002, 0.40000001, 0.0, v98, (const char *)&qword_14052A4D8, 0, 0, nullptr); a1->m_yOnlyToggler = v100; v100->setTag(v100, 2); BYTE1(a1->m_yOnlyToggler->m_onButton) = 1; ++v68; v69 = -105.0; } while ( v68 < 2 ); SetupTriggerPopup::createMultiTriggerItemsDefault(a1); SetupCameraOffsetTrigger::updateValueXLabel(a1); SetupCameraOffsetTrigger::updateValueYLabel(a1); SetupCameraOffsetTrigger::updateEasingLabel(a1); a1->m_disableTextDelegate = 0; return 1; } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source