public DebugFlipperSlider(string label, DebugFlipperSliderParam param, float minValue, float maxValue)
 {
     Label    = label;
     Param    = param;
     MinValue = minValue;
     MaxValue = maxValue;
 }
示例#2
0
        static public void SliderFloat(string label, DebugFlipperSliderParam param, float min, float max)
        {
            var engine = EngineProvider <IPhysicsEngine> .Get();

            float val = engine.GetFlipperDebugValue(param);

            if (ImGui.SliderFloat(label, ref val, min, max))
            {
                engine.SetFlipperDebugValue(param, val);
            }
        }