// // GJFollowCommandLayer::textChanged from 0x4dcbdc to 0x4dcd8a (430 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJFollowCommandLayer::textChanged @ 0x4dcda4 // // 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 GJFollowCommandLayer::textChanged(GJFollowCommandLayer *a1, CCTextInputNode *a2) { int v3; // r6 int v4; // r6 double v5; // d8 const char *v6; // r1 cocos2d::CCString *v7; // r0 Slider *m_xModSlider; // r0 float m_xMod; // s14 double v10; // d8 const char *v11; // r1 cocos2d::CCString *v12; // r0 float v13; // s15 double v14; // d8 const char *v15; // r1 cocos2d::CCString *v16; // r0 char *v18; // [sp+8h] [bp-Ch] BYREF if ( !a1->m_disableTextDelegate ) { switch ( a2->getTag(a2) ) { case 0: CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2); v5 = atof(v18); sub_774008(&v18); *(float *)&v5 = v5; v7 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%.02f", v6, *(float *)&v5); a1->m_xMod = cocos2d::CCString::floatValue(v7); GJFollowCommandLayer::updateXMod(a1); m_xModSlider = a1->m_xModSlider; m_xMod = a1->m_xMod; goto LABEL_9; case 1: CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2); v10 = atof(v18); sub_774008(&v18); *(float *)&v10 = v10; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v11, *(float *)&v10); a1->m_yMod = cocos2d::CCString::floatValue(v12); GJFollowCommandLayer::updateYMod(a1); m_xMod = a1->m_yMod; m_xModSlider = a1->m_yModSlider; LABEL_9: v13 = (float)(m_xMod * 0.5) + 0.5; goto LABEL_11; case 2: CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2); v3 = atoi(v18); sub_774008(&v18); if ( v3 < 1 ) v3 = 1; a1->m_targetGroupID = v3; GJFollowCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); return; case 3: CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2); v14 = atof(v18); sub_774008(&v18); *(float *)&v14 = v14; v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v15, *(float *)&v14); a1->m_moveTime = cocos2d::CCString::floatValue(v16); GJFollowCommandLayer::updateDuration(a1); m_xModSlider = a1->m_moveTimeSlider; v13 = a1->m_moveTime / 10.0; LABEL_11: if ( v13 >= 1.0 ) { v13 = 1.0; } else if ( v13 <= 0.0 ) { v13 = 0.0; } Slider::setValue(m_xModSlider, v13); break; case 4: CCTextInputNode::getString((CCTextInputNode *)&v18, (int)a2); v4 = atoi(v18); sub_774008(&v18); a1->m_followGroupID = v4 & ~(v4 >> 31); GJFollowCommandLayer::updateTargetGroupID2(a1); break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source