
Text
<action>
<item type='string' target='string' text='string' />
...
</action>
Description
The action tags can be added to an object and enclose any number of items, each executes an action when triggered by an event:
- type: The type of action to execute. The type values that control text or field are:
- set_text: Change the text displayed by a text or field.
- target: The ID of text or field to apply this action to.
- text: The text to apply to text or field.
<slickboard>
<!-- 3 buttons that change the displayed text -->
<object>
<rect x='115' y='50' width='70' height='30' fill_color='FF6600' shadow='default' state='hit' />
<text x='115' y='55' width='70' alpha='.6' align_h='center' shadow='default'>One</text>
<action>
<item type='set_text' target='my_text' text='One' />
</action>
</object>
<object>
<rect x='205' y='50' width='70' height='30' fill_color='FF6600' shadow='default' state='hit' />
<text x='205' y='55' width='70' alpha='.6' align_h='center' shadow='default'>Two</text>
<action>
<item type='set_text' target='my_text' text='Two' />
</action>
</object>
<object>
<rect x='295' y='50' width='70' height='30' fill_color='FF6600' shadow='default' state='hit' />
<text x='295' y='55' width='70' alpha='.6' align_h='center' shadow='default'>Three</text>
<action>
<item type='set_text' target='my_text' text='Three' />
</action>
</object>
<!-- the text field -->
<text id='my_text' x='100' y='150' width='280' alpha='.6' size='24' align_h='center' shadow='default'>Text</text>
<filter>
<shadow id='default' />
</filter>
</slickboard> |
|
|