LavishGUI:commandbutton (Element Type)
Jump to navigation
Jump to search
Contents
Introduction
What is a Command Button?
A command button is a box that executes a Command when pressed.
Using Command Button
Command Buttons are descendants of the button element type. Any attributes of the button element type may be applied in addition to the command button-specific properties described below.
Command Button-Specific Properties
- Command
- Command to be executed when the button is pressed and then released.
Examples
Example 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> <Command>Script[test]:QueueCommand[call TestFunction TestInput]</Command> </button>