-
Notifications
You must be signed in to change notification settings - Fork 2
Element
Crutiatix edited this page May 6, 2017
·
13 revisions
creating:
ticuare.element({})
or ticuare.newElement({})
-
- x = [number] - x position
- y = [number] - y position
- w = [number] - width
- h = [number] - height
- align = [table] - table containing keys x and y defining align. Options: 0,1,2.
- colors = [table] - array of 3 colors defined as numbers in range 0-15
- border = [table] - table containing attributes of element's border
- shadow = [table] - table containing attributes of element's shadow
- text = [table] - table containing attributes of element's text
- icon = [table] - table containing attributes of element's icon
- tiled = [table] - table containing attributes of element's background made from a sprites/tiles
- offset = [table] - table containing keys x and y defining offset of element
- drag = [table] - table containing attributes defining draging of element
- content = [table] - table containing attributes defining content of element
- mouse events = [function] - functions called on specific mouse event
-
- :style() = apply specified style on element
- :group() = add element to specified group
- :anchor() = anchor element to another element
- :Content()
- :scroll()
- :active()
- :visible()
- :drawSelf() = draw only this element
- :horizontalRange() = set or get normalized number (0-1) of position of element between horizontal bounds
- :verticalRange() = set or get normalized number (0-1) of position of element between horizontal bounds
- :dragBounds() = set boundaries of dragging. Same as attribute drag
- :index()
- :toFront()
- :remove() = delete element from ticuare
-
- v0.8.0
- added tiled
- v0.7.0
- renamed setContent to Content
- removed * setContentDimensions*
- merged setScroll and getScroll to scroll
- merged setActive and getActive to active
- merged setVisible and getVisible to visible
- merged setHorizontalRange and getHorizontalRange to horizontalRange
- merged setVerticalRange and getVerticalRange to verticalRange
- renamed setDragBounds to dragBounds
- merged setIndex and getIndex to index
- v0.6.0
- removed center
- added align
- renamed show to view
- v0.8.0