From 690e705de1e8b8babbb7bf86f55a5dbae559488b Mon Sep 17 00:00:00 2001 From: IcECreAm777 <31211782+IcECreAm777@users.noreply.github.com> Date: Sun, 17 Jul 2022 02:55:17 +0200 Subject: scoreboard added again --- godot/scenes/Die.gd | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'godot') diff --git a/godot/scenes/Die.gd b/godot/scenes/Die.gd index 6ccd16e..21a408e 100644 --- a/godot/scenes/Die.gd +++ b/godot/scenes/Die.gd @@ -33,6 +33,14 @@ func _ready(): previous_bounciness = mat.get_bounce() func _input(event): + + if event is InputEventKey: + if event.scancode == KEY_TAB: + if event.is_pressed(): + _game.open_scoreboard() + else: + _game.close_scoreboard() + return if event is InputEventMouseButton and dice_is_moving == false: if event.is_pressed() and left_pressed == false: -- cgit