LavishGUI:button (Element Type)
From Lavish Software Wiki
Contents |
[edit]
Introduction
[edit]
What is a Button?
A button is a box that performs an action when clicked. Buttons use lguibutton (Data Type) for access via LavishScript.
[edit]
Using Buttons
Buttons are descendants of the base element type. Any attributes of the base element type may be applied in addition to the button-specific properties described below.
[edit]
Button-Specific Properties
- BackgroundColor
- Background color
- Border
- Size of border around the element. This border is included in the size of the element
- BorderColor
- Border color
- Font
- Font reference (Name, Size, Color)
- Text
- Text to be displayed on the button
- Texture
- Texture displayed when the button is in its normal, unpressed state. If a texture is used, BackgroundColor is ignored.
- TexturePressed
- Texture displayed while the button is being pressed
- TextureHover
- Texture displayed while the mouse is over the unpressed button
[edit]
Examples
[edit]
Example XML code
<button name='TestButton'>
<Width>130</Width>
<Height>30</Height>
<BackgroundColor></BackgroundColor>
<Font>
<Name>terminal</Name>
<Size>12</Size>
<Color>FFFF00FF</Color>
</Font>
<Texture Filename='Button.png'>
<Border>5</Border>
<Right>64</Right>
<Bottom>64</Bottom>
</Texture>
<TexturePressed Template='ButtonTexturePressedTemplate'></TexturePressed>
<TextColor>FFEECC00</TextColor>
</button>
[edit]
