From 1a7d55692ab7f36fc58ec8ceeef6588a2be8de0d Mon Sep 17 00:00:00 2001 From: Just Dzhi Date: Mon, 2 Oct 2023 23:56:20 +0400 Subject: [PATCH] TODO update ui --- src/models/player/Player.tscn | 1 + src/scenes/game/game.gd | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/src/models/player/Player.tscn b/src/models/player/Player.tscn index b21224f..e17a714 100644 --- a/src/models/player/Player.tscn +++ b/src/models/player/Player.tscn @@ -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="."] diff --git a/src/scenes/game/game.gd b/src/scenes/game/game.gd index 5198e44..7c2c744 100644 --- a/src/scenes/game/game.gd +++ b/src/scenes/game/game.gd @@ -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)