// // SetupCameraRotatePopup::textChanged from 0x52747c to 0x52758c (272 bytes) // // 1 xrefs: // > `non-virtual thunk to'SetupCameraRotatePopup::textChanged @ 0x5275a4 // // 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 SetupCameraRotatePopup::textChanged(SetupCameraRotatePopup *a1, CCTextInputNode *a2) { int v4; // r0 double v5; // d8 const char *v6; // r1 cocos2d::CCString *v7; // r0 Slider *m_moveTimeSlider; // r0 float v9; // s15 double v10; // d8 const char *v11; // r1 cocos2d::CCString *v12; // r0 char *v13; // [sp+0h] [bp-Ch] BYREF if ( !a1->m_disableTextDelegate ) { v4 = a2->getTag(a2); if ( v4 ) { if ( v4 != 2 ) return; CCTextInputNode::getString((CCTextInputNode *)&v13, (int)a2); v5 = atof(v13); sub_774008(&v13); *(float *)&v5 = v5; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v6, *(float *)&v5); a1->m_moveTime = cocos2d::CCString::floatValue(v7); SetupCameraRotatePopup::updateDuration(a1); m_moveTimeSlider = a1->m_moveTimeSlider; v9 = a1->m_moveTime / 10.0; } else { CCTextInputNode::getString((CCTextInputNode *)&v13, (int)a2); v10 = atof(v13); sub_774008(&v13); *(float *)&v10 = v10; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v11, *(float *)&v10); a1->m_degrees = cocos2d::CCString::floatValue(v12); SetupCameraRotatePopup::updateCommandDegrees(a1); m_moveTimeSlider = a1->m_degreesSlider; v9 = (float)(a1->m_degrees / 720.0) + 0.5; } if ( v9 >= 1.0 ) { v9 = 1.0; } else if ( v9 <= 0.0 ) { v9 = 0.0; } Slider::setValue(m_moveTimeSlider, v9); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source