// // GJPFollowCommandLayer::init from 0x4dd4b0 to 0x4de384 (3796 bytes) // // 1 xrefs: // > GJPFollowCommandLayer::create @ 0x4de53e // // 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 GJPFollowCommandLayer::init(GJPFollowCommandLayer *a1, EffectGameObject *a2, cocos2d::CCArray *a3) { cocos2d::CCDirector *v4; // r0 cocos2d::CCLabelBMFont *v5; // r7 void (__fastcall *setPosition)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 const char *v7; // r1 ButtonSprite *v8; // r0 CCMenuItemSpriteExtra *v9; // r0 CCMenuItemSpriteExtra *v10; // r8 cocos2d::CCMenu *m_buttonMenu; // r10 void (__fastcall *v12)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCLabelBMFont *v13; // r8 void (__fastcall *setAnchorPoint)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCNode *v15; // r8 void (__fastcall *v16)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 const char *v17; // r2 CCTextInputNode *v18; // r0 CCTextInputNode *m_moveTimeInput; // r9 void (__fastcall *v20)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 int v21; // r0 CCTextInputNode *v22; // r8 CCTextInputNode *v23; // r3 Slider *v24; // r0 Slider *m_moveTimeSlider; // r9 void (__fastcall *v26)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r8 float v27; // s15 int v28; // r8 void (*v29)(GJPFollowCommandLayer *, cocos2d::CCObject *); // r3 float v30; // s15 cocos2d::CCLabelBMFont *v31; // r9 void (__fastcall *v32)(cocos2d::CCLabelBMFont *__hidden, const cocos2d::CCPoint *); // r7 cocos2d::CCNode *v33; // r7 void (__fastcall *v34)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float m_delay; // s18 const char *v36; // r2 CCTextInputNode *v37; // r5 void (__fastcall *v38)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v39; // r0 CCTextInputNode_vtbl *v40; // r3 Slider *v41; // r5 void (__fastcall *v42)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 float v43; // r1 int v44; // r2 bool v45; // r3 int m_targetGroupID; // r9 cocos2d::CCLabelBMFont *v47; // r6 void (__fastcall *v48)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r10 cocos2d::CCNode *v49; // r6 const char *v50; // r2 CCTextInputNode *v51; // r7 cocos2d::CCSprite *v52; // r5 CCMenuItemSpriteExtra *v53; // r5 void (__fastcall *v54)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCSprite *v55; // r5 CCMenuItemSpriteExtra *v56; // r5 void (__fastcall *v57)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 int v58; // r2 bool v59; // r3 cocos2d::CCLabelBMFont *v60; // r6 void (__fastcall *v61)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // r9 cocos2d::CCNode *v62; // r9 CCTextInputNode *v63; // r0 CCTextInputNode *m_offsetInput; // r10 CCTextInputNode *v65; // r0 int v66; // r2 bool v67; // r3 cocos2d::CCLabelBMFont *v68; // r8 cocos2d::CCNode *v69; // r7 CCTextInputNode *v70; // r0 CCTextInputNode *m_maxSpeedInput; // r6 CCTextInputNode *v72; // r0 TextInputDelegate *v74; // [sp+Ch] [bp-C8h] _BOOL4 v75; // [sp+10h] [bp-C4h] void (__fastcall *v76)(cocos2d::CCNode *__hidden, const cocos2d::CCPoint *); // [sp+18h] [bp-BCh] cocos2d::ccColor3B v77; // [sp+30h] [bp-A4h] cocos2d::ccColor3B v78; // [sp+34h] [bp-A0h] cocos2d::ccColor3B v79; // [sp+38h] [bp-9Ch] cocos2d::ccColor3B v80; // [sp+3Ch] [bp-98h] cocos2d::ccColor3B v81; // [sp+40h] [bp-94h] cocos2d::CCLabelBMFont *v82; // [sp+44h] [bp-90h] BYREF char v83[4]; // [sp+48h] [bp-8Ch] BYREF cocos2d::CCSize v84; // [sp+4Ch] [bp-88h] BYREF cocos2d::CCPoint v85; // [sp+54h] [bp-80h] BYREF cocos2d::CCSize v86; // [sp+5Ch] [bp-78h] BYREF cocos2d::CCPoint v87; // [sp+64h] [bp-70h] BYREF void (*v88)(GJPFollowCommandLayer *, cocos2d::CCObject *); // [sp+6Ch] [bp-68h] unsigned int v89; // [sp+70h] [bp-64h] cocos2d::CCPoint v90; // [sp+74h] [bp-60h] BYREF cocos2d::CCPoint v91; // [sp+7Ch] [bp-58h] BYREF cocos2d::CCPoint v92; // [sp+84h] [bp-50h] BYREF int v93; // [sp+8Ch] [bp-48h] int v94; // [sp+90h] [bp-44h] void (*v95)(GJPFollowCommandLayer *, cocos2d::CCObject *); // [sp+94h] [bp-40h] int v96; // [sp+98h] [bp-3Ch] cocos2d::CCRect v97; // [sp+9Ch] [bp-38h] BYREF cocos2d::CCRect v98; // [sp+ACh] [bp-28h] BYREF cocos2d::CCRect v99; // [sp+BCh] [bp-18h] BYREF cocos2d::CCRect v100; // 0:r2.8,8:^0.8 cocos2d::CCRect v101; // 0:r2.8,8:^0.8 cocos2d::CCRect v102; // 0:r2.8,8:^0.8 cocos2d::CCRect v103; // 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( &v99.origin, v84.width * 0.5, (float)((float)(a1->m_height * 0.5) + (float)(v84.height * 0.5)) - 15.0); setPosition(v5, &v99.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v5); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v5->setScale)(v5, 1058642330); v8 = ButtonSprite::create((ButtonSprite *)"OK", v7); v93 = 660; v94 = 1; v9 = CCMenuItemSpriteExtra::create(v8, nullptr, (cocos2d::SEL_MenuHandler)((unsigned int)a1 | 0x29400000000LL)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v9); sub_776584((int)&v98, "Help"); sub_776584( (int)&v99, "Make a group of objects follow the player's Y position.\n" "Speed is how fast it snaps to the position. Leaving this at 1.0 makes it instantaneous.\n" "Max Speed limits how fast the movement can be."); v10 = InfoAlertButton::create((int)&v98, (int)&v99, 1065353216); sub_774008(&v99); sub_774008(&v98); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v10); m_buttonMenu = a1->m_buttonMenu; v12 = v10->setPosition; cocos2d::CCPoint::CCPoint( &v98.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(&v99.origin, m_buttonMenu, &v98.origin); v12(v10, &v99.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(&v99.origin, 1.0, 0.5); setAnchorPoint(v13, &v99.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v13); cocos2d::CCRect::CCRect(&v97, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v99, &v97); v15 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v99, v100); ((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(&v98.origin, 45.0, 0.0); cocos2d::CCPoint::operator+(&v99, &v85, &v98); v16(v15, &v99.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)&v99, "0123456789."); CCTextInputNode::setAllowedChars((int)v22, (int)&v99); sub_774008(&v99); *(_WORD *)&v77.r = -21896; v77.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_moveTimeInput, v77); CCTextInputNode::setLabelPlaceholderScale(a1->m_moveTimeInput, 0.5); v23 = a1->m_moveTimeInput; v23->m_numberInput = 1; v23->m_delegate = &a1->TextInputDelegate; v74 = &a1->TextInputDelegate; a1->m_moveTimeInput->setTag(a1->m_moveTimeInput, 3); v96 = 0; v95 = GJPFollowCommandLayer::sliderChanged; v24 = (Slider *)Slider::create(a1, (unsigned int)GJPFollowCommandLayer::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(&v98.origin, 0.0, -32.0); cocos2d::CCPoint::operator+(&v99, &v85, &v98); v26(m_moveTimeSlider, &v99.origin); v27 = a1->m_moveTime / 10.0; if ( v27 >= 1.0 ) { v27 = 1.0; } else if ( v27 <= 0.0 ) { v27 = 0.0; } v28 = 0; Slider::setValue(a1->m_moveTimeSlider, v27); GJPFollowCommandLayer::updateDurLabel(a1, 0); v29 = GJPFollowCommandLayer::sliderXModChanged; while ( 1 ) { v89 = 0; v30 = -105.0; v88 = v29; if ( v28 ) v30 = 105.0; cocos2d::CCPoint::CCPoint(&v90, v30 + (float)(v84.width * 0.5), (float)(v84.height * 0.5) + 95.0); v31 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v31->setScale)(v31, 1060320051); v31->setPosition(v31, &v90); v32 = v31->setAnchorPoint; cocos2d::CCPoint::CCPoint(&v99.origin, 1.0, 0.5); v32(v31, &v99.origin); a1->m_mainLayer->addChild(a1->m_mainLayer, v31); cocos2d::CCRect::CCRect(&v98, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v99, &v98); v33 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v99, v101); ((void (__fastcall *)(cocos2d::CCNode *, int))v33->__vftable[1].~CCNode_0)(v33, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v91, 70.0, 30.0); v33->setContentSize(v33, (const cocos2d::CCSize *)&v91); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v33, -1); v34 = v33->setPosition; cocos2d::CCPoint::CCPoint(&v92, 45.0, 0.0); cocos2d::CCPoint::operator+(&v99, &v90, &v92); v34(v33, &v99.origin); if ( v28 ) m_delay = a1->m_delay; else m_delay = a1->m_speed; v36 = "Mixed"; if ( m_delay != -99999.0 ) v36 = "Num"; v37 = CCTextInputNode::create(60.0, 40.0, v36, "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, v37, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); v38 = v37->setPosition; v39 = (int)v33->getPosition(v33); v38(v37, (const cocos2d::CCPoint *)v39); CCTextInputNode::setMaxLabelScale(v37, 0.6); CCTextInputNode::setMaxLabelWidth(v37, 200.0); v37->m_textField->setVisible(v37->m_textField, 0); v37->m_maxLabelLength = 5; sub_776584((int)&v99, "0123456789.-"); CCTextInputNode::setAllowedChars((int)v37, (int)&v99); sub_774008(&v99); *(_WORD *)&v78.r = -21896; v78.b = -16; CCTextInputNode::setLabelPlaceholderColor(v37, v78); CCTextInputNode::setLabelPlaceholderScale(v37, 0.5); v37->m_numberInput = 1; v37->m_delegate = v74; v40 = v37->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; if ( v28 ) { a1->m_delayInput = v37; v40->setTag(v37, 1); } else { a1->m_speedInput = v37; v40->setTag(v37, 0); } v41 = (Slider *)Slider::create(a1, (unsigned int)v88, v89, 0.8); Slider::setBarVisibility(v41, 0); a1->m_mainLayer->addChild(a1->m_mainLayer, v41); v42 = v41->setPosition; cocos2d::CCPoint::CCPoint(&v92, 0.0, -32.0); cocos2d::CCPoint::operator+(&v99, &v90, &v92); v42(v41, &v99.origin); v43 = m_delay == -99999.0 ? 0.5 : m_delay; Slider::setValue(v41, v43); if ( v28 ) a1->m_delaySlider = v41; else a1->m_speedSlider = v41; v29 = GJPFollowCommandLayer::sliderYModChanged; if ( v28 ) break; v28 = 1; } SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(a1); cocos2d::CCPoint::CCPoint(&v87); v82 = (cocos2d::CCLabelBMFont *)&unk_ACDDA8; cocos2d::CCPoint::CCPoint(&v99.origin, (float)(v84.width * 0.5) + 170.0, (float)(v84.height * 0.5) - 80.0); cocos2d::CCPoint::operator=((PlayerObject *)&v87, COERCE_FLOAT(&v99), v44, v45); sub_7753D4((int)&v82, "Target\nGroup ID"); m_targetGroupID = a1->m_targetGroupID; v88 = GJPFollowCommandLayer::onUpdateGroupID; v89 = 0; v47 = cocos2d::CCLabelBMFont::create(); ((void (__fastcall *)(cocos2d::CCLabelBMFont *, int))v47->setScale)(v47, 1056964608); a1->m_mainLayer->addChild(a1->m_mainLayer, v47); v48 = v47->setPosition; cocos2d::CCPoint::CCPoint(&v98.origin, 0.0, 75.0); cocos2d::CCPoint::operator+(&v99, &v87, &v98); v48(v47, &v99.origin); cocos2d::CCRect::CCRect(&v98, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::CCRect(&v99, &v98); v49 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v99, v101); ((void (__fastcall *)(cocos2d::CCNode *, int))v49->__vftable[1].~CCNode_0)(v49, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v90, 50.0, 30.0); v49->setContentSize(v49, (const cocos2d::CCSize *)&v90); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v49, -1); v49->setPosition(v49, &v87); if ( m_targetGroupID == -99999 ) v50 = "Mixed"; else v50 = "Num"; v51 = CCTextInputNode::create(50.0, 40.0, v50, "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, v51, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); v51->setPosition(v51, &v87); CCTextInputNode::setMaxLabelScale(v51, 0.6); CCTextInputNode::setMaxLabelWidth(v51, 80.0); v51->m_textField->setVisible(v51->m_textField, 0); v51->m_maxLabelLength = 6; sub_776584((int)v83, "0123456789"); CCTextInputNode::setAllowedChars((int)v51, (int)v83); sub_774008(v83); *(_WORD *)&v79.r = -21896; v79.b = -16; CCTextInputNode::setLabelPlaceholderColor(v51, v79); CCTextInputNode::setLabelPlaceholderScale(v51, 0.5); v51->m_delegate = v74; v51->m_numberInput = 1; v51->setTag(v51, 2); a1->m_targetIDInput = v51; cocos2d::CCNode::convertToNodeSpace(&v91, a1->m_buttonMenu, &v87); v52 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v52->setScale)(v52, 1068708659); ((void (__fastcall *)(cocos2d::CCSprite *, int))v52->setRotation)(v52, 1119092736); v53 = CCMenuItemSpriteExtra::create( v52, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__((unsigned int)v88, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v53); v53->setTag(v53, 1); v54 = v53->setPosition; cocos2d::CCPoint::CCPoint(&v92, 0.0, 40.0); cocos2d::CCPoint::operator+(&v99, &v91, &v92); v54(v53, &v99.origin); CCMenuItemSpriteExtra::setSizeMult(v53, 2.0); v55 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png"); ((void (__fastcall *)(cocos2d::CCSprite *, int))v55->setScale)(v55, 1068708659); ((void (__fastcall *)(cocos2d::CCSprite *, int))v55->setRotation)(v55, 1119092736); v56 = CCMenuItemSpriteExtra::create( v55, nullptr, (cocos2d::SEL_MenuHandler)__PAIR64__((unsigned int)v88, (unsigned int)a1)); a1->m_buttonMenu->addChild(a1->m_buttonMenu, v56); v56->setTag(v56, 2); v57 = v56->setPosition; cocos2d::CCPoint::CCPoint(&v92, 0.0, -40.0); cocos2d::CCPoint::operator+(&v99, &v91, &v92); v57(v56, &v99.origin); CCMenuItemSpriteExtra::setSizeMult(v56, 2.0); cocos2d::CCPoint::CCPoint(&v99.origin, (float)(v84.width * 0.5) - 100.0, v84.height * 0.5); cocos2d::CCPoint::operator=((PlayerObject *)&v87, COERCE_FLOAT(&v99), v58, v59); v60 = cocos2d::CCLabelBMFont::create(); v60->setScale(v60, 0.5); a1->m_mainLayer->addChild(a1->m_mainLayer, v60); v61 = v60->setPosition; cocos2d::CCPoint::CCPoint(&v92, 0.0, 30.0); cocos2d::CCPoint::operator+(&v99, &v87, &v92); v61(v60, &v99.origin); cocos2d::CCRect::CCRect(&v99, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::operator=(&v98, &v99); cocos2d::CCRect::CCRect(&v99, &v98); v62 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v99, v102); ((void (__fastcall *)(cocos2d::CCNode *, int))v62->__vftable[1].~CCNode_0)(v62, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v99, 50.0, 30.0); cocos2d::CCSize::operator=(&v90, &v99); v62->setContentSize(v62, (const cocos2d::CCSize *)&v90); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v62, -1); v62->setPosition(v62, &v87); v63 = CCTextInputNode::create(50.0, 40.0, "Num", "Thonburi"); a1->m_offsetInput = v63; ((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, v63, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); a1->m_offsetInput->setPosition(a1->m_offsetInput, &v87); CCTextInputNode::setMaxLabelScale(a1->m_offsetInput, 0.6); CCTextInputNode::setMaxLabelWidth(a1->m_offsetInput, 80.0); a1->m_offsetInput->m_textField->setVisible(a1->m_offsetInput->m_textField, 0); m_offsetInput = a1->m_offsetInput; m_offsetInput->m_maxLabelLength = 6; sub_776584((int)&v92, "0123456789-"); CCTextInputNode::setAllowedChars((int)m_offsetInput, (int)&v92); sub_774008(&v92); *(_WORD *)&v80.r = -21896; v80.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_offsetInput, v80); CCTextInputNode::setLabelPlaceholderScale(a1->m_offsetInput, 0.5); a1->m_offsetInput->m_delegate = v74; v65 = a1->m_offsetInput; v65->m_numberInput = 1; v65->setTag(v65, 5); cocos2d::CCPoint::CCPoint(&v99.origin, (float)(v84.width * 0.5) + 100.0, v84.height * 0.5); cocos2d::CCPoint::operator=((PlayerObject *)&v87, COERCE_FLOAT(&v99), v66, v67); v68 = cocos2d::CCLabelBMFont::create(); v68->setScale(v68, 0.5); a1->m_mainLayer->addChild(a1->m_mainLayer, v68); v76 = v68->setPosition; cocos2d::CCPoint::CCPoint(&v92, 0.0, 30.0); cocos2d::CCPoint::operator+(&v99, &v87, &v92); v76(v68, &v99.origin); cocos2d::CCRect::CCRect(&v99, 0.0, 0.0, 40.0, 40.0); cocos2d::CCRect::operator=(&v98, &v99); cocos2d::CCRect::CCRect(&v99, &v98); v69 = (cocos2d::CCNode *)cocos2d::extension::CCScale9Sprite::create( (cocos2d::extension::CCScale9Sprite *)"square02_small.png", (const char *)&v99, v103); ((void (__fastcall *)(cocos2d::CCNode *, int))v69->__vftable[1].~CCNode_0)(v69, 100); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v99, 50.0, 30.0); cocos2d::CCSize::operator=(&v90, &v99); v69->setContentSize(v69, (const cocos2d::CCSize *)&v90); a1->m_mainLayer->addChild_0(a1->m_mainLayer, v69, -1); v69->setPosition(v69, &v87); v70 = CCTextInputNode::create(50.0, 40.0, "Num", "Thonburi"); a1->m_maxSpeedInput = v70; ((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, v70, 20, a1->m_mainLayer->addChild_0, &dword_18, "bigFont.fnt"); a1->m_maxSpeedInput->setPosition(a1->m_maxSpeedInput, &v87); CCTextInputNode::setMaxLabelScale(a1->m_maxSpeedInput, 0.6); CCTextInputNode::setMaxLabelWidth(a1->m_maxSpeedInput, 80.0); a1->m_maxSpeedInput->m_textField->setVisible(a1->m_maxSpeedInput->m_textField, 0); m_maxSpeedInput = a1->m_maxSpeedInput; m_maxSpeedInput->m_maxLabelLength = 3; sub_776584((int)&v99, "0123456789."); CCTextInputNode::setAllowedChars((int)m_maxSpeedInput, (int)&v99); sub_774008(&v99); *(_WORD *)&v81.r = -21896; v81.b = -16; CCTextInputNode::setLabelPlaceholderColor(a1->m_maxSpeedInput, v81); CCTextInputNode::setLabelPlaceholderScale(a1->m_maxSpeedInput, 0.5); a1->m_maxSpeedInput->m_delegate = v74; v72 = a1->m_maxSpeedInput; v72->m_numberInput = 1; v72->setTag(v72, 6); GJPFollowCommandLayer::updateTextInputLabel(a1); GJPFollowCommandLayer::updateXModLabel(a1); GJPFollowCommandLayer::updateYModLabel(a1); GJPFollowCommandLayer::updateOffsetLabel(a1); GJPFollowCommandLayer::updateMaxSpeedLabel(a1); a1->m_disableTextDelegate = 0; sub_774008(&v82); } return v75; }
GD Web Decomp Icon

GD Web Decomp

Raw Source