diff options
Diffstat (limited to 'scenes')
| -rw-r--r-- | scenes/GUI/hud.tscn (renamed from scenes/hud.tscn) | 0 | ||||
| -rw-r--r-- | scenes/GUI/invetory_menu.tscn | 36 | ||||
| -rw-r--r-- | scenes/GUI/item_menu_entry.tscn | 35 | ||||
| -rw-r--r-- | scenes/Game.tscn | 9 |
4 files changed, 78 insertions, 2 deletions
diff --git a/scenes/hud.tscn b/scenes/GUI/hud.tscn index 034d2d9..034d2d9 100644 --- a/scenes/hud.tscn +++ b/scenes/GUI/hud.tscn 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" diff --git a/scenes/Game.tscn b/scenes/Game.tscn index 2a59777..4cb5231 100644 --- a/scenes/Game.tscn +++ b/scenes/Game.tscn @@ -1,4 +1,4 @@ -[gd_scene load_steps=12 format=3 uid="uid://u5h6iqyi8wd0"] +[gd_scene load_steps=13 format=3 uid="uid://u5h6iqyi8wd0"] [ext_resource type="Script" uid="uid://dwubb28wt4bhe" path="res://scripts/Game.cs" id="1_cpr0p"] [ext_resource type="Script" uid="uid://ejqmdbc0524i" path="res://scripts/input/MainGameInputHandler.cs" id="3_400sg"] @@ -9,8 +9,9 @@ [ext_resource type="Script" uid="uid://bamlnrj5bm1rd" path="res://scripts/input/InspectInputHandler.cs" id="5_g4kob"] [ext_resource type="PackedScene" uid="uid://bryqrafavmwj4" path="res://scenes/Details.tscn" id="5_qy1jj"] [ext_resource type="Script" uid="uid://bereyrj1s46y5" path="res://scripts/map/FieldOfView.cs" id="5_s0nni"] -[ext_resource type="PackedScene" uid="uid://b4h4xyr1g8o50" path="res://scenes/hud.tscn" id="6_aug50"] +[ext_resource type="PackedScene" uid="uid://b4h4xyr1g8o50" path="res://scenes/GUI/hud.tscn" id="6_aug50"] [ext_resource type="Script" uid="uid://dspqgdxg5jji0" path="res://scripts/input/PickupInputHandler.cs" id="10_3xj3m"] +[ext_resource type="Script" uid="uid://bjcjktvyrdh10" path="res://scripts/input/InventoryInputHandler.cs" id="11_mcffj"] [node name="Game" type="Node"] script = ExtResource("1_cpr0p") @@ -50,6 +51,10 @@ map = NodePath("../../Map") [node name="PickupInputHandler" type="Node" parent="InputHandler"] script = ExtResource("10_3xj3m") +[node name="InventoryInputHandler" type="Node" parent="InputHandler" node_paths=PackedStringArray("map")] +script = ExtResource("11_mcffj") +map = NodePath("../../Map") + [node name="Camera2D" type="Camera2D" parent="."] offset = Vector2(8, 8) zoom = Vector2(2, 2) |
