SliderButton

SliderButton
int SliderButton ( fixed startx, fixed endx, fixed y, fixed Width, fixed Height, int min, int max, int value, str BarGraphic, str ButtonGraphic, int id, int SliderID, bool DisplayValue )

code contained in Inventory/script/HUD_Funcs.dh

Properties

 * startx/endx - Fixed coordinates for the start and the end of the bar area.
 * y - Fixed coordinate for the bar y position
 * Width/Height - Fixed coordinates for the size of the button area
 * min, max, value - The minimum and maximum range for value, and the value itself.
 * BarGraphic - The background image for the slider bar
 * ButtonGraphic - The image for the slider button
 * id - HudMessage ID#
 * SliderID - Array index of SliderValue[] array
 * DisplayValue - If true, displays the integer value inside the button

Description
Displays a button that can slide horizontally between set x coordinates. The button describes a value between min and max, which is altered by holding MOUSE_LMB and pulling to the left or right. Returns the altered value.