Bos Wars Scripting API: User Interface (UI)
Bos Wars
FAQ
PREV
NEXT
LUA Index
DefineButton
DefineButtonStyle
DefineCheckboxStyle
DefineCursor
DefineMenu
DefineMenuGraphics
DefineMenuItem
DefinePanelContents
DefineUI
DefineViewports
SetGameCursor
Intro - Introduction to UI functions and variables
Everything around the user interface.
Functions
DefineButton({tag1 = value1, tag2 value2, ...})
Define a button in the button panel show during the game. Possible tags:
- Pos = number
- Position number.
0 1 2
3 4 5
6 7 8
- Level = number
- Visible when in this button level (0 default, 9 cancel-only)
- Icon = "icon-name"
- Name of the icon to display.
- Action = "action"
- Action to perform when the button is clicked. Can be any of the following:
- "move"
- The unit moves to location
- "stop"
- the unit stops. Orders queue is also erased. The unit wait for order but can react by itself.
- "attack"
- The unit attacks target. if target is a unit then it attacks only the unit.
If target is a position, it will move to location by attacking any opponent on the way.
- "repair"
- The unit will repair the target unit.
- "harvest"
- The unit will harvest the ressources.
- "button"
- FIXME. Need Value = number.
- "build"
- The unit will build the unit (building structure)
- "train-unit"
- The unit trains an unit. Generally use for building to create news units.
Need Value = "unit-name".
- "patrol"
- The unit patrol between target position and current position and attack any opponent
on the way.
- "stand-ground"
- The unit doesn't move. The unit stay at its location until it receives a new order.
- "attack-ground"
- The unit attack a location. Usefull for unit with spalsh damage.
- "return-goods"
- The unit with ressources return goods.
- "cast-spell"
- The unit cast a spell.
Need Value = "spell-name"
- "unload"
- The unit unload unit inside of itself. Usefull for transporter or bunkers.
- "cancel"
- FIXME : difference between cancels.
- "cancel-train-unit"
- FIXME
- "cancel-build"
- FIXME
- Value = arg
- Optional value associated with the action.
- Allowed = "check-name"
- Optional check to see if a button is allowed. Can be any of the following:
- "check-true"
- No restriction on this button.
- "check-false"
- this button is forbidden. FIXME : ? to be removed. What is its usage ?
- "check-units-or"
- this button is available if at least one of the unit are available.
Need AllowArg = {"unit-name1", "unit-name2"}
- "check-units-and"
- FIXME
- "check-network"
- Button is available only if network is available too.
- "check-no-network"
- Button is available only if network is not available.
- "check-no-work"
- FIXME
- "check-attack"
- FIXME
- AllowArg = {"arg1", ...}
- Optional argument used by the allowed function.
- Key = "char"
- Shortcut key for the button. (FE "c" for key 'c' or "\27" for Escape)
- Hint = "string"
- Hint to be displayed for the button.
- ForUnit = {"unit-name1", ...} or {"*"}
- List of units the button applies to, or {"*"} for all units.
Example
DefineButton( { Pos = 8, Level = 0, Icon = "icon-build-advanced",
Action = "button", Value = 2,
Allowed = "check-units-or", AllowArg = {"unit-elven-lumber-mill", "unit-keep"},
Key = "v", Hint = "BUILD AD~!VANCED STRUCTURE",
ForUnit = {"unit-peasant"} } )
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {x, y}
- Size of the button.
- Font = font-name
- Name of the font to use.
- TextNormalColor = color, TextReverseColor = color
- Color to use for the normal and reverse text.
- TextAlign = align
- Align the text. Possible values are "Left", "Right", and "Center".
- TextPos = {posx, posy}
- Set the position pre>
DefineButtonStyle(style, {tag = value, ...})
Define a button style. Possible tags:
- Size = {