mirror of
https://github.com/PHIDIAS0303/ExpCluster.git
synced 2025-12-31 04:51:40 +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
|
player.cheat_mode = false
|
||||||
end)
|
end)
|
||||||
|
|
||||||
radio_test = Gui.inputs.add_checkbox('test-radio',true,'Cheat Mode',function(parent)
|
radio_test = Gui.inputs.add_checkbox('test-radio',true,'Kill Self',function(parent)
|
||||||
return game.players[parent.player_index].cheat_mode
|
return game.players[parent.player_index].in_combat
|
||||||
end,function(player,element)
|
end,function(player,element)
|
||||||
player.cheat_mode = true
|
if player.character then player.character.die() end
|
||||||
end,function(player,element)
|
|
||||||
player.cheat_mode = false
|
|
||||||
end)
|
end)
|
||||||
Reference in New Issue
Block a user