// // GJRotateCommandLayer::textChanged from 0x4e09cc to 0x4e0b6e (418 bytes) // // 1 xrefs: // > `non-virtual thunk to'GJRotateCommandLayer::textChanged @ 0x4e0b84 // // 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 GJRotateCommandLayer::textChanged(GJRotateCommandLayer *a1, CCTextInputNode *a2) { int v3; // r6 int v4; // r6 float v5; // s15 Slider *m_degreesSlider; // r0 float m_degrees; // s15 float v8; // s14 float v9; // s15 double v10; // d8 const char *v11; // r1 cocos2d::CCString *v12; // r0 char *v14; // [sp+8h] [bp-Ch] BYREF if ( !a1->m_disableTextChanged ) { switch ( a2->getTag(a2) ) { case 0: CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); v5 = atof(v14); a1->m_degrees = truncatedFloat2(v5); sub_774008(&v14); GJRotateCommandLayer::updateCommandDegrees(a1); m_degreesSlider = a1->m_degreesSlider; m_degrees = a1->m_degrees; v8 = 720.0; goto LABEL_9; case 1: CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); a1->m_times360 = atoi(v14); sub_774008(&v14); GJRotateCommandLayer::updateCommandTimes(a1); m_degreesSlider = a1->m_timesSlider; v8 = 20.0; m_degrees = (float)a1->m_times360; LABEL_9: v9 = (float)(m_degrees / v8) + 0.5; goto LABEL_11; case 2: CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); v3 = atoi(v14); sub_774008(&v14); if ( v3 < 1 ) v3 = 1; a1->m_targetGroupID = v3; GJRotateCommandLayer::updateTargetGroupID(a1); SetupTriggerPopup::updateEditorLabel(a1); return; case 3: CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); v10 = atof(v14); sub_774008(&v14); *(float *)&v10 = v10; v12 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%.02f", v11, *(float *)&v10); a1->m_moveTime = cocos2d::CCString::floatValue(v12); GJRotateCommandLayer::updateDuration(a1); m_degreesSlider = a1->m_moveTimeSlider; v9 = a1->m_moveTime / 10.0; LABEL_11: if ( v9 >= 1.0 ) { v9 = 1.0; } else if ( v9 <= 0.0 ) { v9 = 0.0; } Slider::setValue(m_degreesSlider, v9); break; case 4: CCTextInputNode::getString((CCTextInputNode *)&v14, (int)a2); v4 = atoi(v14); sub_774008(&v14); a1->m_centerGroupID = v4 & ~(v4 >> 31); GJRotateCommandLayer::updateTargetGroupID2(a1); break; default: return; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source