summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/Game.tscn2
-rw-r--r--scenes/hud.tscn51
2 files changed, 37 insertions, 16 deletions
diff --git a/scenes/Game.tscn b/scenes/Game.tscn
index 54a0729..242a489 100644
--- a/scenes/Game.tscn
+++ b/scenes/Game.tscn
@@ -48,6 +48,6 @@ map = NodePath("../../Map")
[node name="Camera2D" type="Camera2D" parent="."]
offset = Vector2(8, 8)
-zoom = Vector2(0.5, 0.5)
+zoom = Vector2(2, 2)
[node name="HUD" parent="." instance=ExtResource("6_aug50")]
diff --git a/scenes/hud.tscn b/scenes/hud.tscn
index 4554c06..034d2d9 100644
--- a/scenes/hud.tscn
+++ b/scenes/hud.tscn
@@ -12,56 +12,77 @@
[node name="HUD" type="CanvasLayer"]
script = ExtResource("1_gdt2y")
-[node name="InfoBar" type="HBoxContainer" parent="."]
-anchors_preset = 12
-anchor_top = 1.0
+[node name="VBoxContainer" type="VBoxContainer" parent="."]
+anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
-offset_top = -10.0
grow_horizontal = 2
-grow_vertical = 0
-size_flags_horizontal = 0
-size_flags_vertical = 0
+grow_vertical = 2
+
+[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
+size_flags_stretch_ratio = 5.0
+
+[node name="InfoBar" type="HBoxContainer" parent="VBoxContainer"]
+layout_mode = 2
+size_flags_vertical = 3
theme_override_constants/separation = 0
-[node name="Stats" type="PanelContainer" parent="InfoBar"]
+[node name="Stats" type="PanelContainer" parent="VBoxContainer/InfoBar"]
layout_mode = 2
size_flags_horizontal = 3
-[node name="MarginContainer" type="MarginContainer" parent="InfoBar/Stats"]
+[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer/InfoBar/Stats"]
layout_mode = 2
theme_override_constants/margin_left = 5
theme_override_constants/margin_top = 5
theme_override_constants/margin_right = 5
theme_override_constants/margin_bottom = 5
-[node name="HBoxContainer" type="HBoxContainer" parent="InfoBar/Stats/MarginContainer"]
+[node name="HBoxContainer" type="HBoxContainer" parent="VBoxContainer/InfoBar/Stats/MarginContainer"]
+layout_mode = 2
+
+[node name="AspectRatioContainer" type="AspectRatioContainer" parent="VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer"]
layout_mode = 2
+size_flags_horizontal = 3
+ratio = 5.0
-[node name="HPbar" type="TextureProgressBar" parent="InfoBar/Stats/MarginContainer/HBoxContainer"]
+[node name="HPbar" type="TextureProgressBar" parent="VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer/AspectRatioContainer"]
+custom_minimum_size = Vector2(50, 10)
layout_mode = 2
+size_flags_horizontal = 3
value = 100.0
+nine_patch_stretch = true
texture_under = ExtResource("2_p7vwb")
texture_over = ExtResource("3_ktti3")
texture_progress = ExtResource("4_cgfq5")
-[node name="MPbar" type="TextureProgressBar" parent="InfoBar/Stats/MarginContainer/HBoxContainer"]
+[node name="AspectRatioContainer2" type="AspectRatioContainer" parent="VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+ratio = 5.0
+
+[node name="MPbar" type="TextureProgressBar" parent="VBoxContainer/InfoBar/Stats/MarginContainer/HBoxContainer/AspectRatioContainer2"]
+custom_minimum_size = Vector2(50, 10)
layout_mode = 2
+size_flags_horizontal = 3
value = 100.0
+nine_patch_stretch = true
texture_under = ExtResource("4_8dubc")
texture_over = ExtResource("5_p7vwb")
texture_progress = ExtResource("6_ktti3")
-[node name="MessagelogContainer" type="PanelContainer" parent="InfoBar"]
+[node name="MessagelogContainer" type="PanelContainer" parent="VBoxContainer/InfoBar"]
layout_mode = 2
size_flags_horizontal = 3
size_flags_stretch_ratio = 2.0
-[node name="MessageLog" type="ScrollContainer" parent="InfoBar/MessagelogContainer"]
+[node name="MessageLog" type="ScrollContainer" parent="VBoxContainer/InfoBar/MessagelogContainer"]
layout_mode = 2
script = ExtResource("8_hd3ao")
-[node name="MessageList" type="VBoxContainer" parent="InfoBar/MessagelogContainer/MessageLog"]
+[node name="MessageList" type="VBoxContainer" parent="VBoxContainer/InfoBar/MessagelogContainer/MessageLog"]
layout_mode = 2
size_flags_horizontal = 3
theme_override_constants/separation = 0