// // GJPFollowCommandLayer::textChanged from 0x4de790 to 0x4de982 (498 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJPFollowCommandLayer::textChanged @ 0x4de9a0 // // 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 GJPFollowCommandLayer::textChanged(GJPFollowCommandLayer *a1, CCTextInputNode *a2) { int v3; // r6 double v4; // d8 const char *v5; // r1 cocos2d::CCString *v6; // r0 Slider *m_speedSlider; // r0 float m_speed; // s15 double v9; // d8 const char *v10; // r1 cocos2d::CCString *v11; // r0 double v12; // d8 const char *v13; // r1 cocos2d::CCString *v14; // r0 double v15; // d8 const char *v16; // r1 cocos2d::CCString *v17; // r0 char *v19; // [sp+8h] [bp-Ch] BYREF if ( !a1->m_disableTextDelegate ) { switch ( a2->getTag(a2) ) { case 0: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); v4 = atof(v19); sub_774008(&v19); *(float *)&v4 = v4; v6 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.03f", v5, *(float *)&v4); a1->m_speed = cocos2d::CCString::floatValue(v6); GJPFollowCommandLayer::updateXMod(a1); m_speedSlider = a1->m_speedSlider; m_speed = a1->m_speed; goto LABEL_9; case 1: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); v9 = atof(v19); sub_774008(&v19); *(float *)&v9 = v9; v11 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v10, *(float *)&v9); a1->m_delay = cocos2d::CCString::floatValue(v11); GJPFollowCommandLayer::updateYMod(a1); m_speedSlider = a1->m_delaySlider; m_speed = a1->m_delay; goto LABEL_9; case 2: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); v3 = atoi(v19); sub_774008(&v19); if ( v3 < 1 ) v3 = 1; a1->m_targetGroupID = v3; GJPFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); return; case 3: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); v12 = atof(v19); sub_774008(&v19); *(float *)&v12 = v12; v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v13, *(float *)&v12); a1->m_moveTime = cocos2d::CCString::floatValue(v14); GJPFollowCommandLayer::updateDuration(a1); m_speedSlider = a1->m_moveTimeSlider; m_speed = a1->m_moveTime / 10.0; LABEL_9: if ( m_speed >= 1.0 ) { m_speed = 1.0; } else if ( m_speed <= 0.0 ) { m_speed = 0.0; } Slider::setValue(m_speedSlider, m_speed); break; case 5: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); a1->m_offset = (int)(float)((float)atoi(v19) * 3.0); sub_774008(&v19); GJPFollowCommandLayer::updatePlayerOffset(a1); break; case 6: CCTextInputNode::getString((CCTextInputNode *)&v19, (int)a2); v15 = atof(v19); sub_774008(&v19); *(float *)&v15 = v15; v17 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.01f", v16, *(float *)&v15); a1->m_maxSpeed = cocos2d::CCString::floatValue(v17); GJPFollowCommandLayer::updateMaxSpeed(a1); break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source