// // SetupShakePopup::textChanged from 0x4f9fac to 0x4fa172 (454 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupShakePopup::textChanged @ 0x4fa198 // // 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 SetupShakePopup::textChanged(SetupShakePopup *a1, CCTextInputNode *a2) { double v4; // d9 const char *v5; // r1 cocos2d::CCString *v6; // r0 float v7; // r0 float v8; // s15 Slider *m_durationSlider; // r0 float v10; // s15 double v11; // d9 const char *v12; // r1 cocos2d::CCString *v13; // r0 float v14; // r0 float v15; // s15 float m_duration; // s15 float v17; // s14 double v18; // d9 const char *v19; // r1 cocos2d::CCString *v20; // r0 float v21; // r0 float v22; // s15 char *v23; // [sp+0h] [bp-Ch] BYREF if ( !a1->m_disableTextDelegate ) { if ( a2->getTag(a2) == 5 ) { CCTextInputNode::getString((CCTextInputNode *)&v23, (int)a2); v4 = atof(v23); sub_774008(&v23); *(float *)&v4 = v4; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v5, *(float *)&v4); v7 = cocos2d::CCString::floatValue(v6); v8 = v7; if ( v7 <= 0.0 ) { v8 = 0.0; } else if ( v7 >= 10.0 ) { v8 = 10.0; } a1->m_duration = v8; SetupShakePopup::updateDuration(a1); m_durationSlider = a1->m_durationSlider; v10 = a1->m_duration / 10.0; } else { if ( a2->getTag(a2) == 8 ) { CCTextInputNode::getString((CCTextInputNode *)&v23, (int)a2); v11 = atof(v23); sub_774008(&v23); *(float *)&v11 = v11; v13 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v12, *(float *)&v11); v14 = cocos2d::CCString::floatValue(v13); v15 = v14; if ( v14 <= 0.0 ) { v15 = 0.0; } else if ( v14 >= 0.2 ) { v15 = 0.2; } a1->m_interval = v15; SetupShakePopup::updateInterval(a1); m_durationSlider = a1->m_intervalSlider; m_duration = a1->m_duration; v17 = 0.1; } else { CCTextInputNode::getString((CCTextInputNode *)&v23, (int)a2); v18 = atof(v23); sub_774008(&v23); *(float *)&v18 = v18; v20 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v19, *(float *)&v18); v21 = cocos2d::CCString::floatValue(v20); v22 = v21; if ( v21 <= 0.0 ) { v22 = 0.0; } else if ( v21 >= 100.0 ) { v22 = 100.0; } a1->m_strength = v22; SetupShakePopup::updateShake(a1); m_durationSlider = a1->m_strengthSlider; v17 = 5.0; m_duration = a1->m_strength; } v10 = m_duration / v17; } if ( v10 >= 1.0 ) { v10 = 1.0; } else if ( v10 <= 0.0 ) { v10 = 0.0; } Slider::setValue(m_durationSlider, v10); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source