Class: Button

markus.elements.Button

Sprite with button behavior

new markus.elements.Button ()

Example
button(src=button.png)
 @toScene=scene_id
   text | CLICK ME

Extends

Members

angle number inherited

Angle in degrees

bottom number inherited

Positioning the element relative to the bottom edge of the parent

centerX number inherited

Positioning the element relative to the horizontal center of the parent

centerXY number inherited

Positioning the element relative to the horizontal and vertical center of the parent

centerY number inherited

Positioning the element relative to the vertical center of the parent

this.contentH number inherited

The height of the area of allowable positions children of the element

this.contentW number inherited

The width of the area of allowable positions children of the element

h number inherited

Short setter for height

left number inherited

Positioning the element relative to the left edge of the parent

Positioning the element relative to the right edge of the parent

src string inherited overrides

Sprite texture source

top v inherited

Positioning the element relative to the top edge of the parent

w number inherited

Short setter for width