Debug system
This commit is contained in:
21
scenes/Debug.tscn
Normal file
21
scenes/Debug.tscn
Normal file
@@ -0,0 +1,21 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://klfo3l0dxlht"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://d36d3fnpi8y30" path="res://scripts/Singletons/Debug.gd" id="1_5spvt"]
|
||||
[ext_resource type="PackedScene" uid="uid://verg13jtqwvh" path="res://scenes/UI/DebugMenu.tscn" id="2_c2xgb"]
|
||||
|
||||
[node name="Debug" type="Node2D"]
|
||||
script = ExtResource("1_5spvt")
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="DebugMenu" parent="UI" instance=ExtResource("2_c2xgb")]
|
||||
layout_mode = 0
|
||||
anchors_preset = 0
|
||||
anchor_bottom = 0.0
|
||||
grow_vertical = 1
|
@@ -1,9 +1,6 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://w1q5eoiejmy3"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://cak4lch21nq30" path="res://scripts/Scenes/MainMenuScene.gd" id="1_yqorp"]
|
||||
[gd_scene format=3 uid="uid://w1q5eoiejmy3"]
|
||||
|
||||
[node name="MainMenu" type="Node3D"]
|
||||
script = ExtResource("1_yqorp")
|
||||
|
||||
[node name="UI" type="Control" parent="."]
|
||||
layout_mode = 3
|
||||
@@ -13,46 +10,20 @@ anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="VBoxContainer" type="VBoxContainer" parent="UI"]
|
||||
[node name="Label" type="Label" parent="UI"]
|
||||
layout_mode = 1
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 171.0
|
||||
anchors_preset = 8
|
||||
anchor_left = 0.5
|
||||
anchor_top = 0.5
|
||||
anchor_right = 0.5
|
||||
anchor_bottom = 0.5
|
||||
offset_left = -68.0
|
||||
offset_top = -11.5
|
||||
offset_right = 68.0
|
||||
offset_bottom = 11.5
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
text = "Thyme and Magic
|
||||
|
||||
[node name="HBoxContainer" type="HBoxContainer" parent="UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="Overworld" type="Button" parent="UI/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Overworld"
|
||||
|
||||
[node name="MapDropdown" type="OptionButton" parent="UI/VBoxContainer/HBoxContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Quests" type="Button" parent="UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Quests
|
||||
"
|
||||
|
||||
[node name="Cutscene" type="Button" parent="UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Cutscene"
|
||||
|
||||
[node name="Cooking" type="Button" parent="UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Cooking
|
||||
"
|
||||
|
||||
[node name="Battle" type="Button" parent="UI/VBoxContainer"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Battle
|
||||
"
|
||||
|
||||
[connection signal="pressed" from="UI/VBoxContainer/HBoxContainer/Overworld" to="." method="_on_Overworld_pressed"]
|
||||
[connection signal="pressed" from="UI/VBoxContainer/Quests" to="." method="_on_Quests_pressed"]
|
||||
[connection signal="pressed" from="UI/VBoxContainer/Cutscene" to="." method="_on_Custscene_pressed"]
|
||||
[connection signal="pressed" from="UI/VBoxContainer/Cooking" to="." method="_on_Cooking_pressed"]
|
||||
[connection signal="pressed" from="UI/VBoxContainer/Battle" to="." method="_on_Battle_pressed"]
|
||||
Press tab to bring up debug menu."
|
||||
horizontal_alignment = 1
|
||||
|
@@ -1,20 +0,0 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://dfwwtbs3ywcyq"]
|
||||
|
||||
[ext_resource type="Theme" uid="uid://dm7ee4aqjr2dl" path="res://ui/UI Theme.tres" id="1_3b1y4"]
|
||||
[ext_resource type="Script" uid="uid://vjr7s045ri4a" path="res://scripts/Scenes/UIScene.gd" id="2_5efuf"]
|
||||
[ext_resource type="PackedScene" uid="uid://bkx3l0kckf4a8" path="res://scenes/UI/VNTextbox.tscn" id="2_x0c4l"]
|
||||
|
||||
[node name="UI" type="Control"]
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme = ExtResource("1_3b1y4")
|
||||
script = ExtResource("2_5efuf")
|
||||
|
||||
[node name="VNTextbox" parent="." instance=ExtResource("2_x0c4l")]
|
||||
visible = false
|
||||
layout_mode = 1
|
||||
offset_top = -133.0
|
@@ -1,9 +1,9 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://tmbx2kit0jyq"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://pcncoc6wum4q" path="res://scripts/Scenes/OverworldScene.gd" id="1_yv6j0"]
|
||||
[ext_resource type="PackedScene" uid="uid://dx6fv8n4jl5ku" path="res://scenes/Maps/TestMap.tscn" id="4_8dvtu"]
|
||||
[ext_resource type="Script" uid="uid://pcncoc6wum4q" path="res://scripts/Scenes/OverworldScene.gd" id="1_rfscu"]
|
||||
[ext_resource type="PackedScene" uid="uid://dx6fv8n4jl5ku" path="res://scenes/Maps/TestMap.tscn" id="2_puia7"]
|
||||
|
||||
[node name="Overworld" type="Node3D"]
|
||||
script = ExtResource("1_yv6j0")
|
||||
script = ExtResource("1_rfscu")
|
||||
|
||||
[node name="Some-map" parent="." instance=ExtResource("4_8dvtu")]
|
||||
[node name="Some-map" parent="." instance=ExtResource("2_puia7")]
|
49
scenes/UI/DebugMenu.tscn
Normal file
49
scenes/UI/DebugMenu.tscn
Normal file
@@ -0,0 +1,49 @@
|
||||
[gd_scene load_steps=2 format=3 uid="uid://verg13jtqwvh"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://bn2kdjf586e5p" path="res://scripts/UI/DebugMenu.gd" id="1_pcsq6"]
|
||||
|
||||
[node name="DebugMenu" type="VBoxContainer"]
|
||||
anchors_preset = 9
|
||||
anchor_bottom = 1.0
|
||||
offset_right = 171.0
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_pcsq6")
|
||||
|
||||
[node name="MainMenu" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
text = "Prototype Main Menu"
|
||||
|
||||
[node name="OverworldOption" type="HBoxContainer" parent="."]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 0
|
||||
size_flags_vertical = 0
|
||||
|
||||
[node name="Overworld" type="Button" parent="OverworldOption"]
|
||||
layout_mode = 2
|
||||
text = "Prototype Overworld"
|
||||
|
||||
[node name="MapDropdown" type="OptionButton" parent="OverworldOption"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Quests" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
text = "Prototype Quests
|
||||
"
|
||||
|
||||
[node name="Cutscene" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
text = "Prototype Cutscene"
|
||||
|
||||
[node name="Cooking" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
text = "Prototype Cooking
|
||||
"
|
||||
|
||||
[node name="Battle" type="Button" parent="."]
|
||||
layout_mode = 2
|
||||
disabled = true
|
||||
text = "Prototype Battle
|
||||
"
|
Reference in New Issue
Block a user