extends Node2D const ADD_STEP_OUTLINESIZE=30 const MAX_OUTLINESIZE=60 @onready var playerlist_particles_2d: CPUParticles2D = $MarginContainer/PlayerlistParticles2D # Called when the node enters the scene tree for the first time. func _ready() -> void: pass # Replace with function body. # Called every frame. 'delta' is the elapsed time since the previous frame. func updateCountdown(t): if (t<0): $countdown.visible=false else: $countdown.visible=true $countdown.text=str(t) func update_playerlist(players:Array[Gamestate.Player],flashplayer_keycode=-1,effect="blink"): var Playerlabels=$MarginContainer/VBoxContainer_Playerlist.get_children() var i=0 for label in Playerlabels: if i void: var Playerlabels=$MarginContainer/VBoxContainer_Playerlist.get_children() for label in Playerlabels: var outlinesize=max(0,label.get_theme_constant("outline_size")-2*delta) label.add_theme_constant_override("outline_size",outlinesize)