// // GJFollowCommandLayer::textChanged from 0x100137c0c to 0x100137ec4 (696 bytes) // // 2 xrefs: // > sub_100137EC4 @ 0x100137ec8 // > @ 0x100793688 // // 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 GJFollowCommandLayer::textChanged(GJFollowCommandLayer *a1, CCTextInputNode *a2) { int v4; // w0 int v5; // w20 double v6; // d8 int v7; // w20 double v8; // d8 double v9; // d8 char *v10; // x21 char *v11; // x20 float v12; // s0 cocos2d::CCString *v13; // x0 Slider *m_yModSlider; // x0 float v15; // s0 char *v16; // x20 float v17; // s0 cocos2d::CCString *v18; // x0 float m_yMod; // s0 char *v20; // x21 int v21; // w8 char *v22; // x20 float v23; // s0 cocos2d::CCString *v24; // x0 float v25; // s1 _BOOL4 v26; // w8 _BOOL4 v27; // w9 char *v28[2]; // [xsp+8h] [xbp-48h] BYREF char v29; // [xsp+1Fh] [xbp-31h] if ( a1->m_disableTextDelegate ) return; v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v4 <= 1 ) { if ( v4 ) { if ( v4 != 1 ) return; CCTextInputNode::getString(v28, a2); if ( v29 < 0 ) { v22 = v28[0]; v6 = atof(v28[0]); operator delete(v22); } else { v6 = atof((const char *)v28); } v23 = v6; v24 = (cocos2d::CCString *)sub_100268F4C("%.02f", v23); a1->m_yMod = cocos2d::CCString::floatValue(v24); GJFollowCommandLayer::updateYMod(a1); m_yModSlider = a1->m_yModSlider; m_yMod = a1->m_yMod; } else { CCTextInputNode::getString(v28, a2); if ( v29 < 0 ) { v16 = v28[0]; v9 = atof(v28[0]); operator delete(v16); } else { v9 = atof((const char *)v28); } v17 = v9; v18 = (cocos2d::CCString *)sub_100268F4C("%.02f", v17); a1->m_xMod = cocos2d::CCString::floatValue(v18); GJFollowCommandLayer::updateXMod(a1); m_yModSlider = a1->m_xModSlider; m_yMod = a1->m_xMod; } v15 = (float)(m_yMod * 0.5) + 0.5; } else { if ( v4 == 4 ) { CCTextInputNode::getString(v28, a2); if ( v29 < 0 ) { v10 = v28[0]; v7 = atoi(v28[0]); operator delete(v10); } else { v7 = atoi((const char *)v28); } a1->m_followGroupID = v7 & ~(v7 >> 31); GJFollowCommandLayer::updateTargetGroupID2(a1); return; } if ( v4 != 3 ) { if ( v4 == 2 ) { CCTextInputNode::getString(v28, a2); if ( v29 < 0 ) { v20 = v28[0]; v5 = atoi(v28[0]); operator delete(v20); } else { v5 = atoi((const char *)v28); } if ( v5 <= 1 ) v21 = 1; else v21 = v5; a1->m_targetGroupID = v21; GJFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); } return; } CCTextInputNode::getString(v28, a2); if ( v29 < 0 ) { v11 = v28[0]; v8 = atof(v28[0]); operator delete(v11); } else { v8 = atof((const char *)v28); } v12 = v8; v13 = (cocos2d::CCString *)sub_100268F4C("%.02f", v12); a1->m_moveTime = cocos2d::CCString::floatValue(v13); GJFollowCommandLayer::updateDuration(a1); m_yModSlider = a1->m_moveTimeSlider; v15 = a1->m_moveTime / 10.0; } v25 = 1.0; v26 = v15 >= 1.0; v27 = v15 > 0.0 || v15 >= 1.0; if ( v15 <= 0.0 ) v26 = 1; if ( !v27 ) v25 = 0.0; if ( v26 ) v15 = v25; Slider::setValue(m_yModSlider, v15); }
GD Web Decomp Icon

GD Web Decomp

Raw Source