//
// GJFollowCommandLayer::init from 0x140270710 to 0x140271a06 (4854 bytes)
//
// 2 xrefs:
// > GJFollowCommandLayer::create @ 0x1402706c2
// > ??> @ 0x1406d0dac
//
// 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=4
bool GJFollowCommandLayer::init(GJFollowCommandLayer *a1, EffectGameObject *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
int v12; // r14d
cocos2d::CCNode *v13; // rdi
cocos2d::CCNode_vtbl *v14; // rbx
struct cocos2d::CCPoint v15; // rax
float v16; // xmm0_4
struct cocos2d::CCLabelBMFont *v17; // rdi
float v18; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v19; // rbx
const cocos2d::CCPoint *v20; // rax
struct cocos2d::CCRect *v21; // rax
struct cocos2d::extension::CCScale9Sprite *v22; // rdi
__int64 v23; // rdx
float v24; // xmm0_4
const char *v25; // r9
const char *v26; // r8
CCTextInputNode *v27; // rax
CCTextInputNode_vtbl *v28; // rbx
__int64 v29; // rax
CCTextInputNode *m_moveTimeInput; // rcx
CCTextInputNode *v31; // rcx
std::string *p_m_allowedChars; // rcx
CCTextInputNode *v33; // rcx
CCTextInputNode *v34; // rcx
TextInputDelegate *v35; // r13
TextInputDelegate *v36; // rcx
const char *v37; // r8
Slider *v38; // rax
float v39; // xmm0_4
float v40; // xmm1_4
void (*v41)(GJFollowCommandLayer *, cocos2d::CCObject *); // r12
const char *v42; // rbx
float v43; // xmm0_4
struct cocos2d::CCLabelBMFont *v44; // rdi
float v45; // xmm0_4
cocos2d::CCLabelBMFont_vtbl *v46; // rbx
const cocos2d::CCPoint *v47; // rax
struct cocos2d::CCRect *v48; // rax
struct cocos2d::extension::CCScale9Sprite *v49; // r15
__int64 v50; // rdx
float v51; // xmm0_4
const char *v52; // r9
float m_yMod; // xmm6_4
const char *v54; // r8
CCTextInputNode *v55; // rdi
CCTextInputNode_vtbl *v56; // rbx
__int64 v57; // rax
__int64 v58; // rdx
const char *v59; // r8
Slider *v60; // rbx
float v61; // xmm0_4
float v62; // xmm1_4
int i; // r15d
float v64; // xmm1_4
__int64 v65; // rax
unsigned __int64 v66; // rdi
void **v67; // rbx
unsigned __int64 v68; // rcx
__int64 v69; // r14
_WORD *v70; // rbx
void *v71; // rcx
int m_followGroupID; // r12d
void (*v73)(GJFollowCommandLayer *, cocos2d::CCObject *); // rdi
unsigned int v74; // r14d
__int64 v75; // rax
unsigned __int64 v76; // rdi
void **v77; // rbx
unsigned __int64 v78; // rcx
__int64 v79; // r14
_WORD *v80; // rbx
void *v81; // rcx
void **v82; // rcx
struct cocos2d::CCLabelBMFont *v83; // rbx
float v84; // xmm0_4
struct cocos2d::CCRect *v85; // rax
struct cocos2d::extension::CCScale9Sprite *v86; // rbx
__int64 v87; // rdx
const char *v88; // r9
const char *v89; // r8
CCTextInputNode *v90; // rbx
struct cocos2d::CCSprite *v91; // rbx
cocos2d::CCNode *v92; // rbx
float v93; // xmm0_4
struct cocos2d::CCSprite *v94; // rbx
cocos2d::CCNode *v95; // rbx
float v96; // xmm0_4
int v97; // [rsp+28h] [rbp-E0h]
int v98; // [rsp+28h] [rbp-E0h]
int v99; // [rsp+28h] [rbp-E0h]
float v100; // [rsp+48h] [rbp-C0h]
void **v101; // [rsp+50h] [rbp-B8h] BYREF
cocos2d::CCPoint v102; // [rsp+58h] [rbp-B0h] BYREF
cocos2d::CCPoint v103; // [rsp+60h] [rbp-A8h] BYREF
struct cocos2d::CCPoint v104; // [rsp+68h] [rbp-A0h] BYREF
char v105[8]; // [rsp+70h] [rbp-98h] BYREF
__int64 v106; // [rsp+78h] [rbp-90h] BYREF
_QWORD *v107; // [rsp+80h] [rbp-88h] BYREF
cocos2d::CCPoint v108; // [rsp+88h] [rbp-80h] BYREF
cocos2d::CCSize v109[2]; // [rsp+90h] [rbp-78h] BYREF
char Src[12]; // [rsp+A0h] [rbp-68h] BYREF
int v111; // [rsp+ACh] [rbp-5Ch]
__int64 v112; // [rsp+B0h] [rbp-58h]
__int64 v113; // [rsp+B8h] [rbp-50h]
char v114[14]; // [rsp+C0h] [rbp-48h] BYREF
__int16 v115; // [rsp+CEh] [rbp-3Ah]
__int64 v116; // [rsp+D0h] [rbp-38h]
__int64 v117; // [rsp+D8h] [rbp-30h]
_QWORD v118[4]; // [rsp+E0h] [rbp-28h] BYREF
cocos2d::CCSize v119; // [rsp+100h] [rbp-8h] BYREF
cocos2d::CCRect v120; // [rsp+118h] [rbp+10h] BYREF
__int64 v121; // [rsp+128h] [rbp+20h]
__int64 v122; // [rsp+130h] [rbp+28h]
cocos2d::CCRect v123; // [rsp+138h] [rbp+30h] BYREF
cocos2d::CCRect v124; // [rsp+150h] [rbp+48h] BYREF
cocos2d::CCRect v125; // [rsp+160h] [rbp+58h] BYREF
cocos2d::CCRect v126; // [rsp+170h] [rbp+68h] BYREF
void *v127[2]; // [rsp+180h] [rbp+78h] BYREF
__int64 v128; // [rsp+190h] [rbp+88h]
unsigned __int64 v129; // [rsp+198h] [rbp+90h]
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 follow command", (const char *)&qword_14052A4D8);
v8 = v7->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(a1->m_height * 0.5, v100 * 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);
v101 = v127;
*(_OWORD *)v127 = 0;
v12 = 0;
v128 = 0;
v129 = 15;
v127[0] = sub_14003AA10(0xF0u);
v128 = 234;
v129 = 239;
strcpy(
(char *)v127[0],
"Make a group of objects follow a target object.\n"
"Target Group ID is the group of objects that follow the object using Follow Group ID. Make sure th"
"at this group only contains one object or has a group ID parent.");
v120 = 0;
v121 = 4;
v122 = 15;
strcpy((char *)&v120, "Help");
v13 = (cocos2d::CCNode *)InfoAlertButton::create(&v120, v127);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v13);
v14 = v13->__vftable;
cocos2d::CCPoint::CCPoint(a1->m_width * 0.5, (float)((float)(v100 * 0.5) - (float)(a1->m_width * 0.5)) + 18.0);
v15 = cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, (const struct cocos2d::CCPoint *)v109);
((void (__fastcall *)(cocos2d::CCNode *, struct cocos2d::CCPoint))v14->setPosition_0)(v13, v15);
v16 = ((float (__fastcall *)(GJFollowCommandLayer *))a1->determineStartValues)(a1);
cocos2d::CCPoint::CCPoint(v16, (float)(v100 * 0.5) - 105.0);
v17 = cocos2d::CCLabelBMFont::create("Move Time: ", "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v17->setScale_0)(v17);
v18 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, char *))v17->setPosition_0)(v17, v105);
v19 = v17->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v18, 1.0);
v19->setAnchorPoint(v17, v20);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v17);
cocos2d::CCRect::CCRect(&v125, 0.0, 0.0, 40.0, 40.0);
v21 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v123, &v125);
v22 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v21);
LOBYTE(v23) = 100;
v22->setOpacity(&v22->cocos2d::CCRGBAProtocol, v23);
cocos2d::CCSize::CCSize(&v119, 70.0, 30.0);
v22->setContentSize(v22, &v119);
v24 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v22,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint(v24, 45.0);
cocos2d::CCPoint::operator+(v105, &v104);
v22->setPosition_0(v22, &v104);
v26 = "Num";
if ( a1->m_moveTime == -99999.0 )
v26 = "Mixed";
v27 = CCTextInputNode::create(50.0, 40.0, v26, v25, v97, (const char *)&qword_14052A4D8);
a1->m_moveTimeInput = v27;
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v27, 20);
v28 = a1->m_moveTimeInput->__vftable;
v29 = (__int64)v22->getPosition_0(v22);
v28->setPosition_0(a1->m_moveTimeInput, (const cocos2d::CCPoint *)v29);
m_moveTimeInput = a1->m_moveTimeInput;
m_moveTimeInput->m_maxLabelScale = 0.60000002;
CCTextInputNode::refreshLabel(m_moveTimeInput);
v31 = a1->m_moveTimeInput;
v31->m_maxLabelWidth = 200.0;
CCTextInputNode::refreshLabel(v31);
a1->m_moveTimeInput->m_textField->setVisible(a1->m_moveTimeInput->m_textField, 0);
a1->m_moveTimeInput->m_maxLabelLength = 4;
v111 = 0;
v112 = 11;
v113 = 15;
strcpy(Src, "0123456789.");
v101 = (void **)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);
v33 = a1->m_moveTimeInput;
*(_WORD *)&v33->m_placeholderColor.r = -21896;
v33->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v33);
v34 = a1->m_moveTimeInput;
v34->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v34);
a1->m_moveTimeInput->m_numberInput = 1;
v35 = &a1->TextInputDelegate;
v36 = &a1->TextInputDelegate;
if ( !a1 )
v36 = nullptr;
a1->m_moveTimeInput->m_delegate = v36;
a1->m_moveTimeInput->setTag(a1->m_moveTimeInput, 3);
v38 = Slider::create(
a1,
(cocos2d::SEL_MenuHandler *)GJFollowCommandLayer::sliderChanged,
v37,
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
0.80000001);
a1->m_moveTimeSlider = v38;
v38->m_sliderBar->setVisible(v38->m_sliderBar, 0);
v39 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
a1->m_moveTimeSlider);
cocos2d::CCPoint::CCPoint(v39, 0.0);
cocos2d::CCPoint::operator+(v105, &v103);
a1->m_moveTimeSlider->setPosition_0(a1->m_moveTimeSlider, &v103);
v40 = fminf(1.0, a1->m_moveTime / 10.0);
if ( v40 < 0.0 )
v40 = 0.0;
Slider::setValue(a1->m_moveTimeSlider, v40);
GJFollowCommandLayer::updateDurLabel(a1, 0);
do
{
while ( 1 )
{
v41 = GJFollowCommandLayer::sliderXModChanged;
if ( v12 )
v41 = GJFollowCommandLayer::sliderYModChanged;
v42 = "X Mod:";
if ( v12 )
{
v42 = "Y Mod";
v43 = 105.0;
}
else
{
v43 = -105.0;
}
cocos2d::CCPoint::CCPoint(v43, (float)(v100 * 0.5) + v43);
v44 = cocos2d::CCLabelBMFont::create(v42, "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v44->setScale_0)(v44);
v45 = ((float (__fastcall *)(struct cocos2d::CCLabelBMFont *, __int64 *))v44->setPosition_0)(v44, &v106);
v46 = v44->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
cocos2d::CCPoint::CCPoint(v45, 1.0);
v46->setAnchorPoint(v44, v47);
a1->m_mainLayer->addChild_1(a1->m_mainLayer, v44);
cocos2d::CCRect::CCRect(&v126, 0.0, 0.0, 40.0, 40.0);
v48 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v124, &v126);
v49 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v48);
LOBYTE(v50) = 100;
v49->setOpacity(&v49->cocos2d::CCRGBAProtocol, v50);
cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v107, 70.0, 30.0);
v49->setContentSize(v49, (const cocos2d::CCSize *)&v107);
v51 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::extension::CCScale9Sprite *, __int64))a1->m_mainLayer->addChild_0)(
a1->m_mainLayer,
v49,
0xFFFFFFFFLL);
cocos2d::CCPoint::CCPoint(v51, 45.0);
cocos2d::CCPoint::operator+(&v106, &v103);
v49->setPosition_0(v49, &v103);
if ( v12 )
m_yMod = a1->m_yMod;
else
m_yMod = a1->m_xMod;
v54 = "Num";
if ( m_yMod == -99999.0 )
v54 = "Mixed";
v55 = CCTextInputNode::create(60.0, 40.0, v54, v52, v98, (const char *)&qword_14052A4D8);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v55, 20);
v56 = v55->cocos2d::CCLayer::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;
v57 = (__int64)v49->getPosition_0(v49);
v56->setPosition_0(v55, (const cocos2d::CCPoint *)v57);
v55->m_maxLabelScale = 0.60000002;
CCTextInputNode::refreshLabel(v55);
v55->m_maxLabelWidth = 200.0;
CCTextInputNode::refreshLabel(v55);
v55->m_textField->setVisible(v55->m_textField, 0);
v55->m_maxLabelLength = 5;
v116 = 12;
v117 = 15;
strcpy(v114, "0123456789.-");
v114[13] = 0;
v115 = 0;
v109[1] = (cocos2d::CCSize)v114;
if ( &v55->m_allowedChars != (std::string *)v114 )
sub_14003CCE0((void **)&v55->m_allowedChars, v114, 0xCu);
sub_14003A830((__int64)v114);
*(_WORD *)&v55->m_placeholderColor.r = -21896;
v55->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v55);
v55->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v55);
v55->m_delegate = v35;
v55->m_numberInput = 1;
if ( v12 )
{
a1->m_yModInput = v55;
v58 = 1;
}
else
{
a1->m_xModInput = v55;
v58 = 0;
}
v55->setTag(v55, v58);
v60 = Slider::create(
a1,
(cocos2d::SEL_MenuHandler *)v41,
v59,
"slidergroove.png",
"sliderthumb.png",
"sliderthumbsel.png",
0.80000001);
v60->m_sliderBar->setVisible(v60->m_sliderBar, 0);
v61 = ((float (__fastcall *)(cocos2d::CCLayer *, Slider *))a1->m_mainLayer->addChild_1)(a1->m_mainLayer, v60);
cocos2d::CCPoint::CCPoint(v61, 0.0);
cocos2d::CCPoint::operator+(&v106, &v108);
v60->setPosition_0(v60, &v108);
v62 = 0.5;
if ( m_yMod != -99999.0 )
v62 = (float)(m_yMod * 0.5) + 0.5;
Slider::setValue(v60, v62);
if ( v12 )
break;
a1->m_xModSlider = v60;
v12 = 1;
}
a1->m_yModSlider = v60;
++v12;
}
while ( v12 < 2 );
SetupTriggerPopup::createMultiTriggerItemsDefaultVertical(a1);
for ( i = 0; i < 2; ++i )
{
cocos2d::CCPoint::CCPoint(&v102);
*(_OWORD *)v127 = 0;
v128 = 0;
v129 = 15;
LOBYTE(v127[0]) = 0;
v64 = v100 * 0.5;
if ( i )
{
cocos2d::CCPoint::CCPoint(0.0, v64 + 160.0);
cocos2d::CCPoint::operator=(&v102, v75);
v76 = v129;
if ( v129 < 0xF )
{
v78 = v129 >> 1;
if ( v129 <= 0x7FFFFFFFFFFFFFFFLL - (v129 >> 1) )
{
v79 = 15;
if ( v78 + v129 > 0xF )
v79 = v78 + v129;
}
else
{
v79 = 0x7FFFFFFFFFFFFFFFLL;
}
v80 = sub_14003AA10(v79 + 1);
v128 = 15;
v129 = v79;
qmemcpy(v80, "Follow\nGroup I", 14);
v80[7] = (unsigned __int8)aFollowGroupId[14];
if ( v76 > 0xF )
{
v81 = v127[0];
if ( v76 + 1 >= 0x1000 )
{
v81 = *((void **)v127[0] - 1);
if ( (unsigned __int64)((char *)v127[0] - (char *)v81 - 8) > 0x1F )
LABEL_73:
invalid_parameter_noinfo_noreturn();
}
j_j_free(v81);
}
v127[0] = v80;
}
else
{
v77 = v127;
if ( v129 > 0xF )
v77 = (void **)v127[0];
v128 = 15;
memmove(v77, "Follow\nGroup ID", 0xFu);
*((_BYTE *)v77 + 15) = 0;
}
m_followGroupID = a1->m_followGroupID;
v73 = GJFollowCommandLayer::onUpdateGroupID2;
v74 = 4;
}
else
{
cocos2d::CCPoint::CCPoint(0.0, v64 + 80.0);
cocos2d::CCPoint::operator=(&v102, v65);
v66 = v129;
if ( v129 < 0xF )
{
v68 = v129 >> 1;
if ( v129 <= 0x7FFFFFFFFFFFFFFFLL - (v129 >> 1) )
{
v69 = 15;
if ( v129 + v68 > 0xF )
v69 = v129 + v68;
}
else
{
v69 = 0x7FFFFFFFFFFFFFFFLL;
}
v70 = sub_14003AA10(v69 + 1);
v128 = 15;
v129 = v69;
qmemcpy(v70, "Target\nGroup I", 14);
v70[7] = (unsigned __int8)aTargetGroupId[14];
if ( v66 > 0xF )
{
v71 = v127[0];
if ( v66 + 1 >= 0x1000 )
{
v71 = *((void **)v127[0] - 1);
if ( (unsigned __int64)((char *)v127[0] - (char *)v71 - 8) > 0x1F )
goto LABEL_73;
}
j_j_free(v71);
}
v127[0] = v70;
}
else
{
v67 = v127;
if ( v129 > 0xF )
v67 = (void **)v127[0];
v128 = 15;
memmove(v67, "Target\nGroup ID", 0xFu);
*((_BYTE *)v67 + 15) = 0;
}
m_followGroupID = a1->m_targetGroupID;
v73 = GJFollowCommandLayer::onUpdateGroupID;
v74 = 2;
}
v82 = v127;
if ( v129 > 0xF )
v82 = (void **)v127[0];
v83 = cocos2d::CCLabelBMFont::create((const char *)v82, "goldFont.fnt");
((void (__fastcall *)(struct cocos2d::CCLabelBMFont *))v83->setScale_0)(v83);
v84 = ((float (__fastcall *)(cocos2d::CCLayer *, struct cocos2d::CCLabelBMFont *))a1->m_mainLayer->addChild_1)(
a1->m_mainLayer,
v83);
cocos2d::CCPoint::CCPoint(v84, 0.0);
cocos2d::CCPoint::operator+(&v102, &v108);
v83->setPosition_0(v83, &v108);
cocos2d::CCRect::CCRect(&v123, 0.0, 0.0, 40.0, 40.0);
v85 = (struct cocos2d::CCRect *)cocos2d::CCRect::CCRect(&v120, &v123);
v86 = cocos2d::extension::CCScale9Sprite::create("square02_small.png", v85);
LOBYTE(v87) = 100;
v86->setOpacity(&v86->cocos2d::CCRGBAProtocol, v87);
cocos2d::CCSize::CCSize(v109, 50.0, 30.0);
v86->setContentSize(v86, v109);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v86, -1);
v86->setPosition_0(v86, &v102);
v89 = "Mixed";
if ( m_followGroupID != -99999 )
v89 = "Num";
v90 = CCTextInputNode::create(50.0, 40.0, v89, v88, v99, (const char *)&qword_14052A4D8);
a1->m_mainLayer->addChild_0(a1->m_mainLayer, v90, 20);
v90->setPosition_0(v90, &v102);
v90->m_maxLabelScale = 0.60000002;
CCTextInputNode::refreshLabel(v90);
v90->m_maxLabelWidth = 80.0;
CCTextInputNode::refreshLabel(v90);
v90->m_textField->setVisible(v90->m_textField, 0);
v90->m_maxLabelLength = 6;
v118[1] = 14648;
v118[2] = 10;
v118[3] = 15;
v118[0] = 0x3736353433323130LL;
v107 = v118;
if ( &v90->m_allowedChars != (std::string *)v118 )
sub_14003CCE0((void **)&v90->m_allowedChars, v118, 0xAu);
sub_14003A830((__int64)v118);
*(_WORD *)&v90->m_placeholderColor.r = -21896;
v90->m_placeholderColor.b = -16;
CCTextInputNode::refreshLabel(v90);
v90->m_placeholderScale = 0.5;
CCTextInputNode::refreshLabel(v90);
v90->m_delegate = v35;
v90->m_numberInput = 1;
v90->setTag(v90, v74);
if ( i )
a1->m_followIDInput = v90;
else
a1->m_targetIDInput = v90;
cocos2d::CCNode::convertToNodeSpace(a1->m_buttonMenu, &v104);
v91 = cocos2d::CCSprite::createWithSpriteFrameName("edit_leftBtn_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v91->setScale_0)(v91);
((void (__fastcall *)(struct cocos2d::CCSprite *))v91->setRotation)(v91);
v92 = CCMenuItemSpriteExtra::create(v91, nullptr, a1, (cocos2d::SEL_MenuHandler *)v73);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v92);
v93 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v92->setTag)(v92, 1);
cocos2d::CCPoint::CCPoint(v93, 0.0);
cocos2d::CCPoint::operator+(&v104, &v103);
v92->setPosition_0(v92, &v103);
v92[1].m_unknown5 = 0x40000000;
v94 = cocos2d::CCSprite::createWithSpriteFrameName("edit_rightBtn_001.png");
((void (__fastcall *)(struct cocos2d::CCSprite *))v94->setScale_0)(v94);
((void (__fastcall *)(struct cocos2d::CCSprite *))v94->setRotation)(v94);
v95 = CCMenuItemSpriteExtra::create(v94, nullptr, a1, (cocos2d::SEL_MenuHandler *)v73);
a1->m_buttonMenu->addChild_1(a1->m_buttonMenu, v95);
v96 = ((float (__fastcall *)(cocos2d::CCNode *, __int64))v95->setTag)(v95, 2);
cocos2d::CCPoint::CCPoint(v96, 0.0);
cocos2d::CCPoint::operator+(&v104, &v101);
v95->setPosition_0(v95, (const cocos2d::CCPoint *)&v101);
v95[1].m_unknown5 = 0x40000000;
sub_14003A830((__int64)v127);
}
GJFollowCommandLayer::updateTextInputLabel(a1);
GJFollowCommandLayer::updateTextInputLabel2(a1);
GJFollowCommandLayer::updateXModLabel(a1);
GJFollowCommandLayer::updateYModLabel(a1);
a1->m_disableTextDelegate = 0;
return 1;
}
return result;
}