Fixed gui events

This commit is contained in:
Cooldude2606
2019-08-29 18:49:43 +01:00
parent b631172487
commit 38f0413b31
2 changed files with 27 additions and 19 deletions

View File

@@ -183,7 +183,7 @@ Gui.clone_concept('checkbox',TEST 'force_checkbox')
event.concept.set_data(element,element.state) -- Update other instances
event.player.print('Force stored checkbox is now: '..tostring(element.state))
end)
:define_combined_store(function(element,state)
:define_combined_store(Gui.categorize_by_force,function(element,state)
element.state = state or false
end)
@@ -196,7 +196,7 @@ Gui.clone_concept('checkbox',TEST 'player_checkbox')
event.concept.set_data(element,element.state) -- Update other instances
event.player.print('Player stored checkbox is now: '..tostring(element.state))
end)
:define_combined_store(function(element,state)
:define_combined_store(Gui.categorize_by_player,function(element,state)
element.state = state or false
end)