-
Notifications
You must be signed in to change notification settings - Fork 2
slider
A simple primitive square slider consisting of a gradient. It gives you a value from 0 to 1 of how far the pointer of the slider has gone to the right.
- color1[c_green]: The color on the left side of the slider.
- color2[c_red]: The color on the right side of the slider.
- outline[true]: Whether to draw a border around the slider or not.
- outlinewidth[3]: The size of the border around the slider (doesn't go outside the object's width and height).
- coloroutline1[c_aqua]: The color on the left side of the outline.
- coloroutline2[c_orange]: The color on the right side of the outline.
- slidersize[0.1]: The width of the slider button (in the specified type).
- slidersizetype[fc]: The type of width of the slider button.
- sliderheight[1]: The height of the slider button in the specified type.
- slidersizeheight[fc]: The height of size of the slider button.
- slidercolor[c_green]: The color the slider knob/button should be.
- slidercoloron[c_olive]: The color the slider knob/button should be when the mouse hovers over it.
- slidercolorin[c_lime]: The color the slider knob/button should be when the mouse is pressing it.
- slideralpha[1]: Alpha value for the slider knob which will be multiplied by the general alpha value. (See built in object-variables)
- animationtype[uiz_quadratic_out]: What animation the knob should have when you move it.
- anicountspeed[0.1]: How long the animation should take in seconds.
- value: some value between 0 and 1 where 0 is when the slider is left and 1 is when the slider is to the right.
- update: When the slider moves, either by animation or mouse.
- updated: When the mouse unclicks or the new position of the slider is definite.
-
uiz_slider_setvalue(instanceid,value from 0 to 1):
- value: some value between 0 and 1 where 0 is when the slider is left and 1 is when the slider is to the right.
- instanceid: the instance id of the instance you want to modify
-
uiz_slider_setcolor(instanceid,left[c_green],right[c_red]):
- instanceid: the instance id of the instance you want to modify
- left: The color on the left side of the slider.
- right: The color on the right side of the slider.
-
uiz_slider_setoutline(instanceid,enabled[true]):
- instanceid: the instance id of the instance you want to modify
- outline: Whether to draw a border around the slider or not.
-
uiz_slider_setoutlinesettings(instanceid,width[3],color left[c_aqua],color right[c_orange]):
- instanceid: the instance id of the instance you want to modify
- color left: The color on the left side of the outline.
- color right: The color on the right side of the outline.
-
uiz_slider_setbuttonsize(instanceid,width[0.1],widthtype[fc],height[1],heighttype[fc]):
- instanceid: the instance id of the instance you want to modify
- width: The width of the slider button (in the specified type).
- widthtype: The type of width of the slider button.
- height: The height of the slider button in the specified type.
- heighttype: The height of size of the slider button.
-
uiz_slider_setbuttoncolor(instanceid,normal[c_green],mouse over[c_olive],mouse click[c_lime]):
- instanceid: the instance id of the instance you want to modify
- normal: The color the slider knob/button should be.
- mouse over: The color the slider knob/button should be when the mouse hovers over it.
- mouse click: The color the slider knob/button should be when the mouse is pressing it.
-
uiz_slider_setbuttonalpha(instanceid,alpha):
- instanceid: the instance id of the instance you want to modify
- slideralpha: Alpha value for the slider knob which will be multiplied by the general alpha value. (See built in object-variables)
-
uiz_slider_setanimation(instanceid,animation[uiz_quadratic_out],time[0.1]):
- instanceid: the instance id of the instance you want to modify
- animation: What animation the knob should have when you move it.
- time: How long the animation should take in seconds.
-
value=uiz_slickslider_getvalue(instanceid):
- value: some value between 0 and 1 where 0 is when the slider is left and 1 is when the slider is to the right.
- instanceid: the instance id of the instance you want to modify
πTutorials
Basics 1: Basic positioning
Basics 2: Parenting system
Basics 3: Advanced positioning
Basics 4: Advanced sizing and set point
Basics 5: Canvas and containment
Basics 6: Alpha and depth
Basics 7: Using the manual and Animations
Basics 8: Object backgrounds
Basics 9: Grids
Basics 10: Framesets
Basics 11: Windows
Basics 12: Scroll bars
βοΈ Positioning
π Depth
π Structures
π Objects
obj_uiZ_3waybutton
obj_uiZ_button
obj_uiZ_checkbox
obj_uiZ_clock
obj_uiZ_colorbox
obj_uiZ_cover
obj_uiZ_drawdslist
obj_uiZ_dropdown
obj_uiZ_easybutton
obj_uiZ_frame
obj_uiZ_framescrollbar
obj_uiZ_functionbar
obj_uiZ_gradientsquare
obj_uiZ_gradientroundrect
obj_uiZ_gridlist
obj_uiZ_huesquare
obj_uiZ_loadingbar
obj_uiZ_loadingcircle
obj_uiZ_menubutton
obj_uiZ_mousemenu
obj_uiZ_radiobox
obj_uiZ_rotator
obj_uiZ_slider
obj_uiZ_scrollbar
obj_uiZ_slider_2col
obj_uiZ_slickslider
obj_uiZ_slideframe
obj_uiZ_sprbutton
obj_uiZ_spriteanimationbutton
obj_uiZ_spritecounter
obj_uiZ_stringbox
obj_uiZ_sliderstruct
obj_uiZ_surfacecanvas
obj_uiZ_sprite
obj_uiZ_square
obj_uiZ_squarebutton
obj_uiZ_swipicon
obj_uiZ_switch
obj_uiZ_tabslider
obj_uiZ_tabs
obj_uiZ_treelist
obj_uiZ_text
obj_uiZ_text_background
obj_uiZ_textarea
obj_uiZ_valuebox
π Strings
uiz_addChar
uiz_changechar
uiz_charCanHaveAddon
uiz_returnCharAddon
uiz_charIsNumber
uiz_charIsNumberOrText
uiz_getlines
uiz_gettext_contained
uiz_gettextlines_contained
uiz_getValidVariableName
uiz_isSpaceChar
uiz_lastStringChars
uiz_removeChar
uiz_replaceChars_
uiz_string_copy
uiz_string_digits
uiz_string_format
uiz_string_fromReal
uiz_string_real_getFracLength
uiz_string_real_getIntLength
uiz_string_repeat
uiz_string_replace
uiz_string_pos_at
uiz_stringUntilNewline