Skip to content

obj_uiZ_template_tiles

Thomas edited this page Dec 22, 2019 · 1 revision

obj_uiZ_template_tiles
This is an object made for you to copy over, and add code to it yourself.
This is meant for you to easily make stuff like inventory's, picturegrids, etc...
It has support for scrolling.
You can place your drawing code inside the premade script in the Draw GUI event right after the line //your code here".

Your own code:
You'll be able to draw stuff per tile, and everything you do will automatically be contained within the object. (So nothing will be drawn outside it).
For this you can use these variables:
-ix: left side x coordinate
-iy: top side y coordinate
-ilx: right side x coordinate
-ily: bottom side y coordinate
-iw: width
-ih: height
-xc: column number
-yc: row number
-cell: cell number

Settings:
-items[50]: How many items there should be in the grid.
-itemwidth[0.4]: The width of an item.
-itemwidthtype[dp]: The type of width of an item.
-itemheight[0.4]: The height of an item.
-itemheighttype[dp]: The type of height of an item.
-marginwidth[20]: The width of the margins between items.
-marginwidthtype[px]: The type of width of the margins between items.
-marginheight[20]: The height of the margins between items.
-marginheighttype[px]: The type of height of the margins between items.
-minmargin[20]: The absolute minimum margin between two items.
-minmargintype[px]: The type of the absolute minimum margin between two items..
-scrollway[uiz_vertical]: The orientation this object should scroll in.
-keepratio[true]: Have the items always in the same ratio as specified at itemwidth and itemheight, even when items should be rescaled.
-scaleup[false]: Whether to scale the margins (false) or whether to scale the items (true).
-sortway[uiz_horizontal]: What orientation the cells should be ordered in. uiz_horizontal means that first a whole row is filled up before it start with the next column.
-enablescrollbar[!global.systemsupportstouch]: Whether to enable the scrollbar or not. Scrolling useing the mouse will still work.
-enablescroll[true]: Whether to enable scrolling.
-scrollbarsize[0.2]: The size of the scrollbar.
-scrollbarsizetype[dp]: The type of size of the scrollbar.
-scrollbarsprite[spr_uiZ_scrollbar]: which sprite to use. The sprite should follow a few rules, listen on this page. -scrollbarcolor[c_white]: which color blend the sprite of the scrollbar should get.(may not apply to all parts)
-scrollbacktexturemode[uiz_texturemode_fill]: How sprites should be stretched/tiled. You can choose the constants: uiz_texturemode_fill, uiz_texturemode_fill_edgeless, uiz_texturemode_tile, uiz_texturemode_tilefit.

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