From dcc0d1d83d941f77413714bd9be955ed7c1262ea Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 22 Sep 2020 16:49:27 +0200 Subject: [PATCH] Same treatment for the CastBar. --- game/ui/castbar/game_module.tres | 10 ++++++++++ game/ui/player_ui/player_ui.tscn | 6 +----- 2 files changed, 11 insertions(+), 5 deletions(-) create mode 100644 game/ui/castbar/game_module.tres diff --git a/game/ui/castbar/game_module.tres b/game/ui/castbar/game_module.tres new file mode 100644 index 00000000..2d4c9e7e --- /dev/null +++ b/game/ui/castbar/game_module.tres @@ -0,0 +1,10 @@ +[gd_resource type="Resource" load_steps=3 format=2] + +[ext_resource path="res://scripts/game_modules/ui_gui_child_module.gd" type="Script" id=1] +[ext_resource path="res://ui/castbar/Castbar.tscn" type="PackedScene" id=2] + +[resource] +script = ExtResource( 1 ) +enabled = true +scene = ExtResource( 2 ) +hide = true diff --git a/game/ui/player_ui/player_ui.tscn b/game/ui/player_ui/player_ui.tscn index d41915bb..9adc7557 100644 --- a/game/ui/player_ui/player_ui.tscn +++ b/game/ui/player_ui/player_ui.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=25 format=2] +[gd_scene load_steps=24 format=2] [ext_resource path="res://player/GUI.gd" type="Script" id=1] [ext_resource path="res://ui/ingame_menu/IngameMenu.tscn" type="PackedScene" id=2] @@ -9,7 +9,6 @@ [ext_resource path="res://ui/windows/TalentWindow.tscn" type="PackedScene" id=11] [ext_resource path="res://ui/unitframes/TargetUnitframe.tscn" type="PackedScene" id=12] [ext_resource path="res://ui/bags/Bag.tscn" type="PackedScene" id=15] -[ext_resource path="res://ui/castbar/Castbar.tscn" type="PackedScene" id=16] [ext_resource path="res://ui/windows/SpellBookWindow.tscn" type="PackedScene" id=17] [ext_resource path="res://ui/loot_window/LootWindow.tscn" type="PackedScene" id=19] [ext_resource path="res://ui/windows/CraftingWindow.tscn" type="PackedScene" id=20] @@ -276,9 +275,6 @@ margin_right = 151.0 [node name="TargetUnitframe" parent="GUI/Unitframes" instance=ExtResource( 12 )] visible = false -[node name="Castbar" parent="GUI" instance=ExtResource( 16 )] -visible = false - [node name="IngameMenu" parent="GUI" instance=ExtResource( 2 )] visible = false [connection signal="toggled" from="GUI/Buttons/SpellBookButton" to="GUI/Windows/SpellBookWindow" method="_on_SpellBookButton_toggled"]