示例#1
0
        public GuiSlider AddSlider(Vector2 position, float length, float minVal, float maxVal, float defaultVal, GuiSlider.ValueChanged valueChanged)
        {
            GuiSlider gs = new GuiSlider(position, length, minVal, maxVal, defaultVal, valueChanged);

            components.Add(gs);

            return(gs);
        }
示例#2
0
 public void SliderChanged(GuiSlider slider, float pc)
 {
     slider.UpdateValue(pc);
 }