mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-27 11:35:22 +09:00
Learnt that radio buttons cant be toggled off.
This commit is contained in:
@@ -97,10 +97,8 @@ end,function(player,element)
|
||||
player.cheat_mode = false
|
||||
end)
|
||||
|
||||
radio_test = Gui.inputs.add_checkbox('test-radio',true,'Cheat Mode',function(parent)
|
||||
return game.players[parent.player_index].cheat_mode
|
||||
radio_test = Gui.inputs.add_checkbox('test-radio',true,'Kill Self',function(parent)
|
||||
return game.players[parent.player_index].in_combat
|
||||
end,function(player,element)
|
||||
player.cheat_mode = true
|
||||
end,function(player,element)
|
||||
player.cheat_mode = false
|
||||
if player.character then player.character.die() end
|
||||
end)
|
||||
Reference in New Issue
Block a user