Scoreboard
This commit is contained in:
parent
66fbad750c
commit
17e809e95e
10 changed files with 151 additions and 4 deletions
18
gui/scoretable/scoretable.gd
Normal file
18
gui/scoretable/scoretable.gd
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
extends Control
|
||||
|
||||
|
||||
func _input(event: InputEvent) -> void:
|
||||
if event.is_action_pressed("menu_scoretable"):
|
||||
for i in range(%Attackers.get_child_count()):
|
||||
if len(Lobby.attack_team) > i:
|
||||
%Attackers.get_child(i).player_id = Lobby.attack_team[i]
|
||||
else:
|
||||
%Attackers.get_child(i).player_id = -1
|
||||
for i in range(%Defenders.get_child_count()):
|
||||
if len(Lobby.defence_team) > i:
|
||||
%Defenders.get_child(i).player_id = Lobby.defence_team[i]
|
||||
else:
|
||||
%Defenders.get_child(i).player_id = -1
|
||||
visible = true
|
||||
elif event.is_action_released("menu_scoretable"):
|
||||
visible = false
|
||||
Loading…
Add table
Add a link
Reference in a new issue