Skip to content

slickslider

Thomas edited this page Sep 27, 2020 · 3 revisions

obj_uiZ_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.

Property Variables

  • 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

Readable variables

  • 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.

Functions

  • 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

Visuals

Wiki pages

🏑Home / General
πŸ“ƒTutorials
πŸ‘ͺ Parent
↕️ Positioning
πŸ›  Fixing & Updating
πŸ• Depth
πŸ“ƒ Templates and Examples
πŸŒ† Background
πŸ“‡ 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


🎈 Your own objects
🚫 Destroy
🐭 Mouse
πŸ’» Windows (uiz)
🌌 Animations
❓ General
πŸ“’ Numbers
πŸ“’ Strings
✏️ Draw
🚩 Popup
πŸ“‚ Files
πŸ’» Windows (os)

Clone this wiki locally