Proper swap, generic mouse confinment and win

This commit is contained in:
Rendo 2025-12-12 16:49:20 +05:00
commit 5df5633c27
16 changed files with 136 additions and 96 deletions

15
gui/team_won_text.gd Normal file
View 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)