// // GJPFollowCommandLayer::textChanged from 0x100160878 to 0x100160b94 (796 bytes) // // 2 xrefs: // > sub_100160C64 @ 0x100160c68 // > @ 0x10079b868 // // 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 // void __fastcall GJPFollowCommandLayer::textChanged(GJPFollowCommandLayer *a1, CCTextInputNode *a2) { int v4; // w0 int v5; // w20 double v6; // d8 double v7; // d8 double v8; // d8 double v9; // d8 int v10; // w22 char *v11; // x20 const char *v12; // x0 char *v13; // x20 float v14; // s0 cocos2d::CCString *v15; // x0 Slider *m_delaySlider; // x0 float m_delay; // s0 char *v18; // x20 float v19; // s0 cocos2d::CCString *v20; // x0 char *v21; // x21 int v22; // w8 char *v23; // x20 float v24; // s0 cocos2d::CCString *v25; // x0 char *v26; // x20 float v27; // s0 cocos2d::CCString *v28; // x0 float v29; // s1 _BOOL4 v30; // w8 _BOOL4 v31; // w9 char *v32[2]; // [xsp+8h] [xbp-48h] BYREF char v33; // [xsp+1Fh] [xbp-31h] if ( a1->m_disableTextDelegate ) return; v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v4 <= 2 ) { if ( v4 ) { if ( v4 != 1 ) { if ( v4 == 2 ) { CCTextInputNode::getString(v32, a2); if ( v33 < 0 ) { v21 = v32[0]; v5 = atoi(v32[0]); operator delete(v21); } else { v5 = atoi((const char *)v32); } if ( v5 <= 1 ) v22 = 1; else v22 = v5; a1->m_targetGroupID = v22; GJPFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); } return; } CCTextInputNode::getString(v32, a2); if ( v33 < 0 ) { v26 = v32[0]; v9 = atof(v32[0]); operator delete(v26); } else { v9 = atof((const char *)v32); } v27 = v9; v28 = (cocos2d::CCString *)sub_100268F4C("%.02f", v27); a1->m_delay = cocos2d::CCString::floatValue(v28); GJPFollowCommandLayer::updateYMod(a1); m_delaySlider = a1->m_delaySlider; m_delay = a1->m_delay; } else { CCTextInputNode::getString(v32, a2); if ( v33 < 0 ) { v13 = v32[0]; v7 = atof(v32[0]); operator delete(v13); } else { v7 = atof((const char *)v32); } v14 = v7; v15 = (cocos2d::CCString *)sub_100268F4C("%.03f", v14); a1->m_speed = cocos2d::CCString::floatValue(v15); GJPFollowCommandLayer::updateXMod(a1); m_delaySlider = a1->m_speedSlider; m_delay = a1->m_speed; } goto LABEL_38; } switch ( v4 ) { case 3: CCTextInputNode::getString(v32, a2); if ( v33 < 0 ) { v18 = v32[0]; v8 = atof(v32[0]); operator delete(v18); } else { v8 = atof((const char *)v32); } v19 = v8; v20 = (cocos2d::CCString *)sub_100268F4C("%.02f", v19); a1->m_moveTime = cocos2d::CCString::floatValue(v20); GJPFollowCommandLayer::updateDuration(a1); m_delaySlider = a1->m_moveTimeSlider; m_delay = a1->m_moveTime / 10.0; LABEL_38: v29 = 1.0; v30 = m_delay >= 1.0; v31 = m_delay > 0.0 || m_delay >= 1.0; if ( m_delay <= 0.0 ) v30 = 1; if ( !v31 ) v29 = 0.0; if ( v30 ) m_delay = v29; Slider::setValue(m_delaySlider, m_delay); return; case 5: CCTextInputNode::getString(v32, a2); v10 = v33; v11 = v32[0]; if ( v33 >= 0 ) v12 = (const char *)v32; else v12 = v32[0]; a1->m_offset = (int)(float)((float)atoi(v12) * 3.0); if ( v10 < 0 ) operator delete(v11); GJPFollowCommandLayer::updatePlayerOffset(a1); break; case 6: CCTextInputNode::getString(v32, a2); if ( v33 < 0 ) { v23 = v32[0]; v6 = atof(v32[0]); operator delete(v23); } else { v6 = atof((const char *)v32); } v24 = v6; v25 = (cocos2d::CCString *)sub_100268F4C("%.01f", v24); a1->m_maxSpeed = cocos2d::CCString::floatValue(v25); GJPFollowCommandLayer::updateMaxSpeed(a1); break; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source