Add debug foundation
This commit is contained in:
@@ -1,16 +1,23 @@
|
||||
[gd_scene load_steps=6 format=3 uid="uid://b1fxc23gkbqre"]
|
||||
[gd_scene load_steps=8 format=3 uid="uid://b1fxc23gkbqre"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/bootstrap/GameRoot.cs" id="1_game_root"]
|
||||
[ext_resource type="Script" path="res://scripts/debug/DebugOverlay.cs" id="2_debug_overlay"]
|
||||
[ext_resource type="Script" path="res://scripts/debug/DebugCommandNode.cs" id="3_debug_command_node"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/menu/MenuPlaceholder.tscn" id="3_menu"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/debug/SmokeScene.tscn" id="4_smoke"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/debug/ContentBrowser.tscn" id="5_content_browser"]
|
||||
[ext_resource type="PackedScene" path="res://scenes/debug/DebugSandbox.tscn" id="6_debug_sandbox"]
|
||||
|
||||
[node name="GameRoot" type="Node"]
|
||||
script = ExtResource("1_game_root")
|
||||
MenuScene = ExtResource("3_menu")
|
||||
SmokeScene = ExtResource("4_smoke")
|
||||
ContentBrowserScene = ExtResource("5_content_browser")
|
||||
DebugSandboxScene = ExtResource("6_debug_sandbox")
|
||||
|
||||
[node name="DebugCommandNode" type="Node" parent="."]
|
||||
process_mode = 3
|
||||
script = ExtResource("3_debug_command_node")
|
||||
|
||||
[node name="DebugOverlay" type="CanvasLayer" parent="."]
|
||||
script = ExtResource("2_debug_overlay")
|
||||
|
||||
63
godot/scenes/debug/DebugSandbox.tscn
Normal file
63
godot/scenes/debug/DebugSandbox.tscn
Normal file
@@ -0,0 +1,63 @@
|
||||
[gd_scene load_steps=3 format=3 uid="uid://c6qvx8j8iodlo"]
|
||||
|
||||
[ext_resource type="Script" path="res://scripts/debug/DebugSandboxController.cs" id="1_debug_sandbox"]
|
||||
[ext_resource type="Script" path="res://scripts/debug/DebugPanelController.cs" id="2_debug_panel"]
|
||||
|
||||
[node name="DebugSandbox" type="Control"]
|
||||
process_mode = 3
|
||||
layout_mode = 3
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
script = ExtResource("1_debug_sandbox")
|
||||
|
||||
[node name="Main" type="HBoxContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
offset_left = 16.0
|
||||
offset_top = 16.0
|
||||
offset_right = -16.0
|
||||
offset_bottom = -16.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="DebugPanel" type="PanelContainer" parent="Main"]
|
||||
process_mode = 3
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(200, 0)
|
||||
script = ExtResource("2_debug_panel")
|
||||
|
||||
[node name="Playfield" type="PanelContainer" parent="Main"]
|
||||
layout_mode = 2
|
||||
size_flags_horizontal = 3
|
||||
|
||||
[node name="PlayfieldContent" type="VBoxContainer" parent="Main/Playfield"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Title" type="Label" parent="Main/Playfield/PlayfieldContent"]
|
||||
layout_mode = 2
|
||||
text = "Debug Sandbox"
|
||||
|
||||
[node name="StateLabel" type="Label" parent="Main/Playfield/PlayfieldContent"]
|
||||
layout_mode = 2
|
||||
text = "State"
|
||||
|
||||
[node name="MarkerLabel" type="Label" parent="Main/Playfield/PlayfieldContent"]
|
||||
layout_mode = 2
|
||||
text = "Marker: none"
|
||||
|
||||
[node name="SpawnedActors" type="VBoxContainer" parent="Main/Playfield/PlayfieldContent"]
|
||||
layout_mode = 2
|
||||
size_flags_vertical = 3
|
||||
|
||||
[node name="LogScroll" type="ScrollContainer" parent="Main"]
|
||||
layout_mode = 2
|
||||
custom_minimum_size = Vector2(360, 0)
|
||||
|
||||
[node name="LogLabel" type="Label" parent="Main/LogScroll"]
|
||||
layout_mode = 2
|
||||
text = ""
|
||||
Reference in New Issue
Block a user