TODO update ui

main
Just Dzhi 2023-10-02 23:56:20 +04:00
parent 11e0430bcd
commit 1a7d55692a
2 changed files with 8 additions and 0 deletions

View File

@ -124,6 +124,7 @@ visible = false
position = Vector2( 11, 2 )
frames = ExtResource( 5 )
animation = "idle"
frame = 2
playing = true
[node name="AudioGetDamage" type="AudioStreamPlayer" parent="."]

View File

@ -70,3 +70,10 @@ func select_card():
$"UIWrapper/UI/Center/SpellHolder".add_modifier(spells[selected_modifier], selected_modifier)
Global.playing = true
$UIWrapper/UI/Cards.visible = false
func _process(delta):
update_ui()
func update_ui():
$"UIWrapper/UI/Right/CastTime/CastTimeLabel".text = String(0)
$"UIWrapper/UI/Right/Damage/DamageLabel".text = String(0)