|
Component Prototype |
Description |
|||
|
Button2D Component
|
Represent a 2DDevil Button component. This component allows the user to interact with the interface by pressing and releasing it. The output of the button shows the current status of the button ("clicked" or "not clicked"). The two background images are configurable as well as position and dimension of the button. |
|||
|
In-slots |
Name |
Type |
Description |
|
|
visible** |
boolean |
The component is shown when true and hidden when false. |
||
|
alignmentOffset** |
matrix |
This transformation matrix is applied to the component geometry when shown |
||
|
releaseButton |
boolean |
Releases the button status. |
||
|
Out-slots |
Name |
Type |
Description |
|
|
visible** |
boolean |
The in-slot is propagated to the out-slot |
||
|
alignmentOffset** |
matrix |
This transformation matrix corresponds to the output transformation, which combines input transformation with the dimension and position |
||
|
clicked |
boolean |
Reflects the state of the button. True when clicked and false when released. |
||
|
Properties |
Name |
Type |
Description |
|
|
iconFileName* |
string |
The filename of the icon shown for the component in the authoring environment. |
||
|
delete |
boolean |
When true, the button disappears after clicking on it |
||
|
releasedimageFileName |
string |
Filename of the background image shown when released |
||
|
toggledImageFileName |
string |
Filename of the background image shown when toggled |
||
|
position** |
doubleVector |
Values (X and Y) that fix the position of the button |
||
|
dimension** |
doubleVector |
Values (X and Y) that fix the dimension of the button |
||
|
alignment** |
integerVector |
Values (X and Y) that fix the alignment of the button |
||
|
depthLevel** |
integer |
Value that fixes the level of depth of the button |
||
|
doubleState |
boolean |
True when the button is a doubleState button |
||