-
Notifications
You must be signed in to change notification settings - Fork 2
slickslider
A simple way of creating user input for a number within a range. It gives you a value from 0 to 1 of how far the pointer of the slider has gone to the right. Object is a horizontal object and cannot be turned vertically.
Looks a little bit different from the obj_uiZ_slider, as it doesn't use a square gradient but rather a small line with a pointer on it, which is a background. Setting/changing the background will thus only affect the knob on the slider.
- linethickness[3]: The thickness of the horizontal line.
- linethicknesstype[px]: The type of size for the line thickness.
- sliderthickness[0.2]: The thickness of the slider.
- sliderthicknesstype[dp]: The type of thickness of sliderthickness.
- slidermargin[4]: the distance between the top of the object, and the top of the slider knob. Also the distance between the bottom of the object, and the bottom of the slider knob.
- slidermargintype[px]: The type of distance of slidermargin.
- linecolor[$d1bc71]: The color of the horizontal line.
- linemargin[3]: A pixel value which defines the distance between the left and right edges of the object and the line.
- animation[uiz_acceldecel]: The animation which plays when you click somewhere on the line.
- animationtime[0.5]: The time in seconds the animation takes.
This object has a background (although slider exclusive), and all its associated variables about which you can learn more here
- 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_slickslider_setvalue(instanceid,value from 0 to 1).: Set the value of the slider using an animation.
- instanceid: the instance id of the instance you want to modify
- 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.
-
uiz_slickslider_setlinethickness(instanceid,thickness[3],type[px]):
- instanceid: the instance id of the instance you want to modify
- thickness: The thickness of the horizontal line.
- type: The type of size for the line thickness.
-
uiz_slickslider_setsliderthickness(instanceid,thickness[3],type[px]):
- instanceid: the instance id of the instance you want to modify
- thickness: The thickness of the slider.
- type: The type of thickness of sliderthickness.
-
uiz_slickslider_setmargin(instanceid,margin[4],type[px],linemargin[3]):
- instanceid: the instance id of the instance you want to modify
- margin: the distance between the top of the object, and the top of the slider knob. Also the distance between the bottom of the object, and the bottom of the slider knob.
- type: The type of distance of slidermargin.
- linemargin: A pixel value which defines the distance between the left and right edges of the object and the line.
-
uiz_slickslider_setcolor(instanceid,linecolor[$d1bc71]):
- instanceid: the instance id of the instance you want to modify
- linecolor: The color of the horizontal line.
-
uiz_slickslider_setanimation(instanceid,animation[uiz_acceldecel],time[0.5]):
- instanceid: the instance id of the instance you want to modify
- animation: The animation which plays when you click somewhere on the line.
- time: The time in seconds the animation takes.
-
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