// // SetupMGTrigger::textChanged from 0x1002f3224 to 0x1002f33dc (440 bytes) // // 2 xrefs: // > sub_1002F33DC @ 0x1002f33e0 // > @ 0x1007e8020 // // 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 SetupMGTrigger::textChanged(SetupMGTrigger *a1, CCTextInputNode *a2) { int v4; // w0 int v5; // w20 double v6; // d8 char *v7; // x21 Slider *m_moveTimeSlider; // x0 float v9; // s0 _BOOL4 v10; // w8 _BOOL4 v11; // w9 float v12; // s2 float v13; // s0 char *v14; // x20 float v15; // s0 cocos2d::CCString *v16; // x0 float v17; // s1 _BOOL4 v18; // w8 _BOOL4 v19; // w9 char *v20[2]; // [xsp+8h] [xbp-48h] BYREF char v21; // [xsp+1Fh] [xbp-31h] if ( !a1->m_disableTextDelegate ) { v4 = ((__int64 (__fastcall *)(CCTextInputNode *))a2->getTag)(a2); if ( v4 == 3 ) { CCTextInputNode::getString((__int64)a2, v20); if ( v21 < 0 ) { v14 = v20[0]; v6 = atof(v20[0]); operator delete(v14); } else { v6 = atof((const char *)v20); } v15 = v6; v16 = (cocos2d::CCString *)sub_100268F4C("%.02f", v15); a1->m_moveTime = cocos2d::CCString::floatValue(v16); SetupMGTrigger::updateDuration(a1); m_moveTimeSlider = a1->m_moveTimeSlider; v13 = a1->m_moveTime / 10.0; v17 = 1.0; v18 = v13 >= 1.0; v19 = v13 > 0.0 || v13 >= 1.0; if ( v13 <= 0.0 ) v18 = 1; if ( !v19 ) v17 = 0.0; if ( v18 ) v13 = v17; } else { if ( v4 != 1 ) return; CCTextInputNode::getString((__int64)a2, v20); if ( v21 < 0 ) { v7 = v20[0]; v5 = atoi(v20[0]); operator delete(v7); } else { v5 = atoi((const char *)v20); } a1->m_offsetY = (int)(float)((float)v5 * 3.0); SetupMGTrigger::updateMoveCommandPosY(a1); m_moveTimeSlider = a1->m_offsetYSlider; v9 = (float)(floorf((float)a1->m_offsetY / 3.0) / 200.0) + 0.5; v10 = v9 >= 1.0; v11 = v9 > 0.0 || v9 >= 1.0; if ( v9 <= 0.0 ) v10 = 1; v12 = 0.0; if ( v11 ) v12 = 1.0; if ( v10 ) v9 = v12; v13 = fminf(v9, 1.0); } Slider::setValue(m_moveTimeSlider, v13); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source