TheyCallMeTim13 Wiki Contributor Reputation: 50 Joined: 24 Feb 2017 Posts: 976 Location: Pluto
|
Posted: Mon Jan 01, 2018 11:31 pm Post subject: |
|
|
Looked up the ToggleBox class in the celua.txt file.
Quote: |
ToggleBox Class: (Inheritance: CheckBox->ButtonControl->WinControl->Control->Component->Object)
createToggleBox(owner): Creates a ToggleBox class object which belongs to the given owner. Owner can be any object inherited from WinControl
|
Quote: |
CheckBox Class: (Inheritance: ButtonControl->WinControl->Control->Component->Object)
createCheckBox(owner): Creates a CheckBox class object which belongs to the given owner. Owner can be any object inherited from WinControl
properties
Checked: boolean - True if checked
AllowGrayed: boolean - True if it can have 3 states. True/False/None
State: checkboxstate - The state. (cbUnchecked=0, cbChecked=1, cbGrayed=2)
OnChange: function - Function to call when the state it changed
methods
getAllowGrayed()
setAllowGrayed(boolean)
getState(): Returns a state for the checkbox. (cbUnchecked, cbChecked, cbGrayed)
setState(boolean): Sets the state of the checkbox
onChange(function)
|
But "197: attempt to index a nil value (global 'CEToggleBox13')" tells me that "CEToggleBox13" has not been initialized, or it gets set to nil some where before indexing the ToggleBox.
And the "onChange" my be a better way to go. _________________ wiki.CheatEngine.org - Tutorials
OpenCheatTables.org
|
|