Skip to content

mouseband

Thomas edited this page Dec 22, 2019 · 1 revision

obj_uiZ_mouseband
This object is made for advanced use. It's an object made for use with swipable frames and all kinds of things.
The object is invisible and has some variables that keep track of mouse movement.
Also this object is able to switch between acting like a normal object (and thus be a part of the mouse checking meaning that if this object is in a valid place behind other objects it will not count as if the mouse is over it), and between a mode where the mouse ignores any containment methods through the object.
This object freezes the mouse when it is pressed, until the left mouse button is released.

Settings
-disablemousecontain[true]: Whether to still count the mouse as hovering over/clicking the object, if the mouse is doing that at places where the object shouldn't be.

Readable variables
-movedx: How much the mouse x coordinate has changed since the mouse pressed the button. (Doesn't update when the mouse isn't interacting with this object) -movedy: How much the mouse x coordinate has changed since the mouse pressed the button. (Doesn't update when the mouse isn't interacting with this object) -oldx: The starting position of the mouse the moment when this object was pressed.
-oldy: The starting position of the mouse the moment when this object was pressed.
-hasmouse: Whether this object has frozen the mouse or not.
-updated: Whenever the mouse presses or releases the object.

Scripts
-uiz_mouseband_releasemouse(instance id): Makes the mouseband release the mouse if the mouse has been frozen by that object.

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