This commit is contained in:
Matt Parker
2025-08-29 21:23:35 +10:00
parent 3c87c8088c
commit a7e05f6ebb
4 changed files with 15 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ public partial class DebugPanel : Control
[Export]
public Texture2D RunningIcon { get; set; } = null!;
private PackedScene _debugPanelTabScene = GD.Load<PackedScene>("res://Features/Debug_/DebugPanelTab/DebugPanelTab.tscn");
private PackedScene _debugPanelTabScene = GD.Load<PackedScene>("res://Features/Debug_/Tab/DebugPanelTab.tscn");
public override void _Ready()
{
if (RunningIcon is null) throw new Exception("RunningIcon is null in DebugPanel");

View File

@@ -1,7 +1,7 @@
[gd_scene load_steps=3 format=3 uid="uid://d4d0umsglu2ex"]
[ext_resource type="Script" path="res://Features/Debug_/DebugPanelTab/DebugPanelTab.cs" id="1_ppo25"]
[ext_resource type="PackedScene" path="res://Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn" id="2_e6ax5"]
[ext_resource type="Script" uid="uid://b6gq81odfn8ok" path="res://Features/Debug_/Tab/DebugPanelTab.cs" id="1_ppo25"]
[ext_resource type="PackedScene" uid="uid://bdu08nd7si641" path="res://Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn" id="2_e6ax5"]
[node name="DebugPanelTab" type="Control"]
layout_mode = 3

View File

@@ -4,5 +4,10 @@ namespace SharpIDE.Godot.Features.Debug_.Tab.SubTabs;
public partial class ThreadsVariablesSubTab : Control
{
private VBoxContainer _threadsVboxContainer = null!;
public override void _Ready()
{
_threadsVboxContainer = GetNode<VBoxContainer>("%ThreadsPanel/VBoxContainer");
}
}

View File

@@ -1,5 +1,6 @@
[gd_scene load_steps=2 format=3 uid="uid://bdu08nd7si641"]
[gd_scene load_steps=3 format=3 uid="uid://bdu08nd7si641"]
[ext_resource type="Script" uid="uid://dpc4fvj40e5il" path="res://Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs" id="1_e3p3b"]
[ext_resource type="PackedScene" uid="uid://1bbofax8nht1" path="res://Features/Debug_/Tab/SubTabs/ThreadListItem.tscn" id="1_hwpe6"]
[node name="ThreadsVariablesSubTab" type="Control"]
@@ -9,6 +10,7 @@ anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
script = ExtResource("1_e3p3b")
[node name="HSplitContainer" type="HSplitContainer" parent="."]
layout_mode = 1
@@ -24,6 +26,7 @@ layout_mode = 2
split_offset = 370
[node name="ThreadsPanel" type="Panel" parent="HSplitContainer/HSplitContainer"]
unique_name_in_owner = true
layout_mode = 2
[node name="VBoxContainer" type="VBoxContainer" parent="HSplitContainer/HSplitContainer/ThreadsPanel"]
@@ -35,6 +38,7 @@ offset_bottom = 40.0
layout_mode = 2
[node name="StackFramesPanel" type="Panel" parent="HSplitContainer/HSplitContainer"]
unique_name_in_owner = true
layout_mode = 2
[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/StackFramesPanel"]
@@ -45,6 +49,7 @@ offset_bottom = 23.0
text = "B"
[node name="VariablesPanel" type="Panel" parent="HSplitContainer"]
unique_name_in_owner = true
layout_mode = 2
[node name="Label" type="Label" parent="HSplitContainer/VariablesPanel"]