summaryrefslogtreecommitdiff
path: root/scenes/GUI
diff options
context:
space:
mode:
Diffstat (limited to 'scenes/GUI')
-rw-r--r--scenes/GUI/hud.tscn88
-rw-r--r--scenes/GUI/invetory_menu.tscn36
-rw-r--r--scenes/GUI/item_menu_entry.tscn35
3 files changed, 159 insertions, 0 deletions
diff --git a/scenes/GUI/hud.tscn b/scenes/GUI/hud.tscn
new file mode 100644
index 0000000..034d2d9
--- /dev/null
+++ b/scenes/GUI/hud.tscn
@@ -0,0 +1,88 @@
+[gd_scene load_steps=9 format=3 uid="uid://b4h4xyr1g8o50"]
+
+[ext_resource type="Script" uid="uid://br7w3abe0boqb" path="res://scripts/GUI/Hud.cs" id="1_gdt2y"]
+[ext_resource type="Texture2D" uid="uid://cbqd3s1065am6" path="res://assets/sprites/inter-face/HP/HealthBarUnder2.png" id="2_p7vwb"]
+[ext_resource type="Texture2D" uid="uid://c1cktg2arnphx" path="res://assets/sprites/inter-face/HP/HealthBarOverlay2.png" id="3_ktti3"]
+[ext_resource type="Texture2D" uid="uid://sgqb6ccdbt4h" path="res://assets/sprites/inter-face/MP/ManaBarUnder2.png" id="4_8dubc"]
+[ext_resource type="Texture2D" uid="uid://do06pptudsqdp" path="res://assets/sprites/inter-face/HP/HealthBar2.png" id="4_cgfq5"]
+[ext_resource type="Texture2D" uid="uid://b2msd7khjxtat" path="res://assets/sprites/inter-face/MP/ManaBarOverlay.png" id="5_p7vwb"]
+[ext_resource type="Texture2D" uid="uid://b1rotmrfynpau" path="res://assets/sprites/inter-face/MP/ManaBar.png" id="6_ktti3"]
+[ext_resource type="Script" uid="uid://0al5sptrm0fn" path="res://scripts/GUI/MessageLog.cs" id="8_hd3ao"]
+
+[node name="HUD" type="CanvasLayer"]
+script = ExtResource("1_gdt2y")
+
+[node name="VBoxContainer" type="VBoxContainer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+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="VBoxContainer/InfoBar"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[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="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="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="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="VBoxContainer/InfoBar"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_stretch_ratio = 2.0
+
+[node name="MessageLog" type="ScrollContainer" parent="VBoxContainer/InfoBar/MessagelogContainer"]
+layout_mode = 2
+script = ExtResource("8_hd3ao")
+
+[node name="MessageList" type="VBoxContainer" parent="VBoxContainer/InfoBar/MessagelogContainer/MessageLog"]
+layout_mode = 2
+size_flags_horizontal = 3
+theme_override_constants/separation = 0
diff --git a/scenes/GUI/invetory_menu.tscn b/scenes/GUI/invetory_menu.tscn
new file mode 100644
index 0000000..9f36186
--- /dev/null
+++ b/scenes/GUI/invetory_menu.tscn
@@ -0,0 +1,36 @@
+[gd_scene load_steps=3 format=3 uid="uid://cnfa8cijjtc05"]
+
+[ext_resource type="Script" uid="uid://dukpdkyy365y4" path="res://scripts/GUI/InventoryMenu.cs" id="1_elppw"]
+
+[sub_resource type="LabelSettings" id="LabelSettings_mo078"]
+font_size = 32
+
+[node name="InvetoryMenu" type="CanvasLayer"]
+layer = 2
+script = ExtResource("1_elppw")
+
+[node name="CenterContainer" type="CenterContainer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="PanelContainer" type="PanelContainer" parent="CenterContainer"]
+layout_mode = 2
+
+[node name="VBoxContainer" type="VBoxContainer" parent="CenterContainer/PanelContainer"]
+layout_mode = 2
+
+[node name="Title" type="Label" parent="CenterContainer/PanelContainer/VBoxContainer"]
+layout_mode = 2
+text = "Inventário"
+label_settings = SubResource("LabelSettings_mo078")
+horizontal_alignment = 1
+vertical_alignment = 1
+
+[node name="HSeparator" type="HSeparator" parent="CenterContainer/PanelContainer/VBoxContainer"]
+layout_mode = 2
+
+[node name="Items" type="VBoxContainer" parent="CenterContainer/PanelContainer/VBoxContainer"]
+layout_mode = 2
diff --git a/scenes/GUI/item_menu_entry.tscn b/scenes/GUI/item_menu_entry.tscn
new file mode 100644
index 0000000..64692cb
--- /dev/null
+++ b/scenes/GUI/item_menu_entry.tscn
@@ -0,0 +1,35 @@
+[gd_scene load_steps=3 format=3 uid="uid://c511reen3sdq"]
+
+[ext_resource type="Script" uid="uid://bdejwf8qmlii0" path="res://scripts/GUI/ItemMenuEntry.cs" id="1_jbgv3"]
+[ext_resource type="Texture2D" uid="uid://dwky8qc2y602k" path="res://assets/sprites/actors/player.png" id="2_boylf"]
+
+[node name="ItemMenuEntry" type="HBoxContainer"]
+offset_right = 8.0
+offset_bottom = 8.0
+size_flags_horizontal = 3
+script = ExtResource("1_jbgv3")
+
+[node name="Icon" type="TextureRect" parent="."]
+layout_mode = 2
+texture = ExtResource("2_boylf")
+expand_mode = 3
+
+[node name="Shortcut" type="Label" parent="."]
+layout_mode = 2
+text = "Atalho"
+
+[node name="VSeparator" type="VSeparator" parent="."]
+layout_mode = 2
+
+[node name="ItemName" type="Label" parent="."]
+layout_mode = 2
+size_flags_horizontal = 3
+text = "Nome"
+
+[node name="ActivateBtn" type="Button" parent="."]
+layout_mode = 2
+text = "Usar"
+
+[node name="DropButton" type="Button" parent="."]
+layout_mode = 2
+text = "Descartar"