Slider

From Crumbled World Wiki
Revision as of 14:18, 5 July 2025 by Anders (talk | contribs) (Created page with "{{:SliderExampleCode}} ==Inheritance== Panel ==Constructor== {| class="wikitable" !|function !|description |- |Slider(PanelSize size) | |- |Slider(PanelSize size, float minValue, float maxValue) | |- |Slider(PanelSize size, float minValue, float maxValue, float startValue) | |- |Slider(PanelSize size, float minValue, float maxValue, float startValue, string text) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- |floa...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

SliderExampleCode

Inheritance

Panel

Constructor

function description
Slider(PanelSize size)
Slider(PanelSize size, float minValue, float maxValue)
Slider(PanelSize size, float minValue, float maxValue, float startValue)
Slider(PanelSize size, float minValue, float maxValue, float startValue, string text)

Functions

return function description
float getValue() Get slider value.
float getMinValue() Get slider min value.
float getMaxValue() Get slider max value.
setValue(float value)
setMinValue(float value)
setMaxValue(float value)
setEnableText(bool enable)
setMetric(string text)
setSliderBorderColor(Vec3 color)
setSliderBorderColor(Vec4 color)
setLineTopColor(Vec3 color)
setLineTopColor(Vec4 color)
setLineBottomColor(Vec3 color)
setLineBottomColor(Vec4 color)
setButtonTopColor(Vec3 color)
setButtonTopColor(Vec4 color)
setButtonBottomColor(Vec3 color)
setButtonBottomColor(Vec4 color)
setTextColor(Vec3 color)
setTextColor(Vec4 color)