// // ConfigureValuePopup::textChanged from 0x10015072c to 0x10015087c (336 bytes) // // 2 xrefs: // > sub_10015087C @ 0x100150880 // > @ 0x10079a1b0 // // 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 ConfigureValuePopup::textChanged(ConfigureValuePopup *a1, CCTextInputNode *a2) { float m_value; // s0 double v4; // d8 char *v5; // x20 char *v6; // x20 float v7; // s0 cocos2d::CCString *v8; // x0 Slider *m_slider; // x0 float v10; // s0 float v11; // s1 _BOOL4 v12; // w8 _BOOL4 v13; // w9 char *v14[2]; // [xsp+8h] [xbp-38h] BYREF char v15; // [xsp+1Fh] [xbp-21h] if ( !a1->m_disableTextDelegate ) { a1->m_enableDelegate = 1; if ( a1->m_type == 1 ) { CCTextInputNode::getString(v14, a2); if ( v15 < 0 ) { v5 = v14[0]; a1->m_value = (float)atoi(v14[0]); operator delete(v5); m_value = a1->m_value; } else { m_value = (float)atoi((const char *)v14); } if ( a1->m_minimum >= m_value ) m_value = a1->m_minimum; if ( a1->m_maximum <= m_value ) m_value = a1->m_maximum; } else { CCTextInputNode::getString(v14, a2); if ( v15 < 0 ) { v6 = v14[0]; v4 = atof(v14[0]); operator delete(v6); } else { v4 = atof((const char *)v14); } v7 = v4; v8 = (cocos2d::CCString *)sub_100268F4C("%.02f", v7); m_value = cocos2d::CCString::floatValue(v8); } a1->m_value = m_value; m_slider = a1->m_slider; if ( m_slider ) { v10 = (float)(m_value - a1->m_minimum) / (float)(a1->m_maximum - a1->m_minimum); v11 = 1.0; v12 = v10 >= 1.0; v13 = v10 > 0.0 || v10 >= 1.0; if ( v10 <= 0.0 ) v12 = 1; if ( !v13 ) v11 = 0.0; if ( v12 ) v10 = v11; Slider::setValue(m_slider, v10); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source