Editing Mod API Reference:UI

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 57: Line 57:
 
* '''TextColor''' ''string'': The color of the text on the button.  Pass this as a string in #RRGGBB format.
 
* '''TextColor''' ''string'': The color of the text on the button.  Pass this as a string in #RRGGBB format.
 
* '''OnClick''' ''function'': Pass the name of a lua function to be called whenever the player clicks the button.
 
* '''OnClick''' ''function'': Pass the name of a lua function to be called whenever the player clicks the button.
* '''Interactable''' ''bool'': If false, the control will be grayed out and unusable by the player.
 
  
  
Line 64: Line 63:
 
* '''Text''' ''string'': The label displayed to the right of the check box.
 
* '''Text''' ''string'': The label displayed to the right of the check box.
 
* '''OnValueChanged''' ''function'': Pass the name of a lua function to be called whenever the IsChecked property changes, either by your code or by the player clicking the check box.
 
* '''OnValueChanged''' ''function'': Pass the name of a lua function to be called whenever the IsChecked property changes, either by your code or by the player clicking the check box.
* '''Interactable''' ''bool'': If false, the control will be grayed out and unusable by the player.
 
  
  
Line 70: Line 68:
 
* '''Text''' ''string'': The string that appears in the box, or that players typed.
 
* '''Text''' ''string'': The string that appears in the box, or that players typed.
 
* '''PlaceholderText''' ''string'': The text that appears in the box grayed out when it's empty.  For example, "Enter name here..."
 
* '''PlaceholderText''' ''string'': The text that appears in the box grayed out when it's empty.  For example, "Enter name here..."
* '''CharacterLimit''' ''integer'': The maximum number of characters that players can type into this text field.
 
* '''Interactable''' ''bool'': If false, the control will be grayed out and unusable by the player.
 
  
  
Line 81: Line 77:
 
* '''BoxPreferredWidth''' ''number'': Allows setting the preferred width of just the box.  See '''Common Properties''' above.
 
* '''BoxPreferredWidth''' ''number'': Allows setting the preferred width of just the box.  See '''Common Properties''' above.
 
* '''SliderPreferredWidth''' ''number'': Allows setting the preferred width of just the slider.  See '''Common Properties''' above.
 
* '''SliderPreferredWidth''' ''number'': Allows setting the preferred width of just the slider.  See '''Common Properties''' above.
* '''Interactable''' ''bool'': If false, the control will be grayed out and unusable by the player.
 
  
 
== Helper Functions ==
 
== Helper Functions ==

Please note that all contributions to Warzone Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Warzone Wiki:Copyrights for details). Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

Templates used on this page:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox