From a7e05f6ebb4c4467b416717422889167737c6aaa Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Fri, 29 Aug 2025 21:23:35 +1000 Subject: [PATCH] more fix --- src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs | 2 +- src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn | 4 ++-- .../Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs | 7 ++++++- .../Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn | 7 ++++++- 4 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs b/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs index 2c3bcc0..6236e42 100644 --- a/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs +++ b/src/SharpIDE.Godot/Features/Debug_/DebugPanel.cs @@ -13,7 +13,7 @@ public partial class DebugPanel : Control [Export] public Texture2D RunningIcon { get; set; } = null!; - private PackedScene _debugPanelTabScene = GD.Load("res://Features/Debug_/DebugPanelTab/DebugPanelTab.tscn"); + private PackedScene _debugPanelTabScene = GD.Load("res://Features/Debug_/Tab/DebugPanelTab.tscn"); public override void _Ready() { if (RunningIcon is null) throw new Exception("RunningIcon is null in DebugPanel"); diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn index aab9474..cdc2f40 100644 --- a/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/DebugPanelTab.tscn @@ -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 diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs index 44fe967..ab16cb4 100644 --- a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.cs @@ -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("%ThreadsPanel/VBoxContainer"); + } } \ No newline at end of file diff --git a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn index 54cd1d8..db83fa0 100644 --- a/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn +++ b/src/SharpIDE.Godot/Features/Debug_/Tab/SubTabs/ThreadsVariablesSubTab.tscn @@ -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"]