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); }
public void SliderChanged(GuiSlider slider, float pc) { slider.UpdateValue(pc); }