summaryrefslogtreecommitdiff
path: root/scenes
diff options
context:
space:
mode:
Diffstat (limited to 'scenes')
-rw-r--r--scenes/Details.tscn28
-rw-r--r--scenes/Game.tscn6
-rw-r--r--scenes/Inspector.tscn13
3 files changed, 46 insertions, 1 deletions
diff --git a/scenes/Details.tscn b/scenes/Details.tscn
new file mode 100644
index 0000000..65df792
--- /dev/null
+++ b/scenes/Details.tscn
@@ -0,0 +1,28 @@
+[gd_scene load_steps=2 format=3 uid="uid://bryqrafavmwj4"]
+
+[ext_resource type="Script" uid="uid://c5f8urot55re6" path="res://scripts/GUI/Details.cs" id="1_5ml16"]
+
+[node name="InspectDetails" type="CanvasLayer"]
+script = ExtResource("1_5ml16")
+
+[node name="HBoxContainer" type="HBoxContainer" parent="."]
+anchors_preset = 15
+anchor_right = 1.0
+anchor_bottom = 1.0
+grow_horizontal = 2
+grow_vertical = 2
+
+[node name="AspectRatioContainer" type="AspectRatioContainer" parent="HBoxContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+size_flags_stretch_ratio = 3.0
+
+[node name="PanelContainer" type="PanelContainer" parent="HBoxContainer"]
+layout_mode = 2
+size_flags_horizontal = 3
+
+[node name="ScrollContainer" type="ScrollContainer" parent="HBoxContainer/PanelContainer"]
+layout_mode = 2
+
+[node name="Entities" type="VBoxContainer" parent="HBoxContainer/PanelContainer/ScrollContainer"]
+layout_mode = 2
diff --git a/scenes/Game.tscn b/scenes/Game.tscn
index 7f7eff0..54a0729 100644
--- a/scenes/Game.tscn
+++ b/scenes/Game.tscn
@@ -1,4 +1,4 @@
-[gd_scene load_steps=10 format=3 uid="uid://u5h6iqyi8wd0"]
+[gd_scene load_steps=11 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"]
@@ -7,6 +7,7 @@
[ext_resource type="Script" uid="uid://dwyr067lwqcsj" path="res://scripts/map/DungeonGenerator.cs" id="4_78awf"]
[ext_resource type="Script" uid="uid://ogqlb3purl6n" path="res://scripts/input/GameOverInputHandler.cs" id="4_g4kob"]
[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"]
@@ -29,6 +30,9 @@ script = ExtResource("5_s0nni")
[node name="Actors" type="Node2D" parent="Map"]
+[node name="InspectDetails" parent="Map" instance=ExtResource("5_qy1jj")]
+visible = false
+
[node name="InputHandler" type="Node" parent="."]
script = ExtResource("3_s0nni")
diff --git a/scenes/Inspector.tscn b/scenes/Inspector.tscn
new file mode 100644
index 0000000..886b41c
--- /dev/null
+++ b/scenes/Inspector.tscn
@@ -0,0 +1,13 @@
+[gd_scene load_steps=3 format=3 uid="uid://dyythuxaio6j4"]
+
+[ext_resource type="Texture2D" uid="uid://cjjxf4rbj8gku" path="res://assets/sprites/inspector.png" id="1_psyxb"]
+[ext_resource type="Script" uid="uid://dxsrtu4b3pi08" path="res://scripts/actors/Inspector.cs" id="2_g62u7"]
+
+[node name="Sprite2D" type="Sprite2D"]
+texture = ExtResource("1_psyxb")
+centered = false
+script = ExtResource("2_g62u7")
+
+[node name="Camera2D" type="Camera2D" parent="."]
+offset = Vector2(8, 8)
+zoom = Vector2(2, 2)