Editing Mod API Reference:UI
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. | ||
− | |||
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. | ||
− | |||
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..." | ||
− | |||
− | |||
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. | ||
− | |||
== Helper Functions == | == Helper Functions == |