Proper swap, generic mouse confinment and win
This commit is contained in:
parent
cba43ee477
commit
5df5633c27
16 changed files with 136 additions and 96 deletions
15
gui/team_won_text.gd
Normal file
15
gui/team_won_text.gd
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
extends Label
|
||||
|
||||
func _ready() -> void:
|
||||
Session.team_won.connect(on_team_won)
|
||||
|
||||
func on_team_won(team: Session.TEAMS):
|
||||
match team:
|
||||
Session.TEAMS.DEFENCE:
|
||||
text = "ПОБЕДА КОМАНДЫ ЗАЩИТНИКОВ"
|
||||
Session.TEAMS.ATTACK:
|
||||
text = "ПОБЕДА КОМАНДЫ АТАКУЮЩИХ"
|
||||
var tween = create_tween()
|
||||
tween.tween_property(self,"modulate",Color.WHITE,2)
|
||||
tween.tween_interval(3.5)
|
||||
tween.tween_property(self,"modulate",Color.TRANSPARENT,1)
|
||||
Loading…
Add table
Add a link
Reference in a new issue