guy960915 Expert Cheater Reputation: 2
Joined: 17 Sep 2007 Posts: 168
|
Posted: Sat Nov 14, 2020 11:26 pm Post subject: checkbox/button to enable generated trainer |
|
|
checkbox/button to enable generated trainer
trying to use the checkbox or button to enable auto generated trainer?
Generated script:
Code: | function onPostHotkey0(Hotkey)
--Executed after the "toggle*" cheat got executed
local memrec=Hotkey.Owner
local isActive=memrec.Active --get the state after the hotkey got triggered
CETrainer.CHEAT0.setActive(isActive) --gui update, nothing else
if gPlaySoundOnAction then
if isActive then
playSound(gActivateSound)
else
playSound(gDeactivateSound)
end
end
end
memrec45_hotkey0.onPostHotkey=onPostHotkey0 |
usage: NOTE: the memrec number
Code: | function CETrainer_CECheckbox1Click(sender)
memrec45_hotkey0.doHotkey()
end
function CETrainer_CEButton1Click(sender)
memrec45_hotkey0.doHotkey()
end |
|
|