Difference between revisions of "Property Element"

57 bytes added ,  19:34, 8 April 2010
m
imported>JRoush
m
imported>JRoush
Line 26: Line 26:
== Mouse Targetable ==
== Mouse Targetable ==
Properties for any object elements that can be the focus of mouse events, i.e. the [[Object Element#Image|Image]] and [[Object Element#Rect|Rect]] elements.
Properties for any object elements that can be the focus of mouse events, i.e. the [[Object Element#Image|Image]] and [[Object Element#Rect|Rect]] elements.
*'''Target''' (Numeric: Boolean) If true, the element may have mouse or keyboard focus - the Mouseover and Clicked traits will be set accordingly by the engine, and clicking on the element will play the corresponding Clicksound.  If false, then the element is just part of the background, and won't react to player input at all.
*'''Target''' (Numeric: Boolean) If false, then the element is just part of the background, and won't react to player input at all.  If true, the element may have mouse or keyboard focus - the Mouseover property will be set accordingly by the engine.  In addition, if the element has an ID property then clicking on it will set the Clicked property and play the specified Clicksound.   
*'''Clicksound''' (Numeric) Which in-game click sound effect to play when the element is clicked.
*'''Clicksound''' (Numeric) Which in-game click sound effect to play when the element is clicked.
*'''Mouseover''' (Numeric) For targetable elements, this property is set automatically by the game engine.  Its value is 1 when the element has mouse focus, and 0 at all other times.
*'''Mouseover''' (Numeric) For targetable elements, this property is set automatically by the game engine.  Its value is 1 when the element has mouse focus, and 0 at all other times.
Anonymous user