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 62: | Line 62: | ||
'''CheckBox''': A toggleable check box that players can check and uncheck. | '''CheckBox''': A toggleable check box that players can check and uncheck. | ||
* '''IsChecked''' ''bool'': Whether the check box is checked or unchecked. | * '''IsChecked''' ''bool'': Whether the check box is checked or unchecked. | ||
− | |||
* '''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. | * '''Interactable''' ''bool'': If false, the control will be grayed out and unusable by the player. |