add sub tab v1
This commit is contained in:
@@ -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.tscn");
|
||||
private PackedScene _debugPanelTabScene = GD.Load<PackedScene>("res://Features/Debug_/DebugPanelTab/DebugPanelTab.tscn");
|
||||
public override void _Ready()
|
||||
{
|
||||
if (RunningIcon is null) throw new Exception("RunningIcon is null in DebugPanel");
|
||||
|
||||
@@ -1,18 +1,14 @@
|
||||
[gd_scene load_steps=4 format=3 uid="uid://d4d0umsglu2ex"]
|
||||
[gd_scene load_steps=3 format=3 uid="uid://d4d0umsglu2ex"]
|
||||
|
||||
[ext_resource type="Script" uid="uid://b6gq81odfn8ok" path="res://Features/Debug_/DebugPanelTab/DebugPanelTab.cs" id="1_yinwn"]
|
||||
[ext_resource type="PackedScene" uid="uid://bdu08nd7si641" path="res://Features/Debug_/DebugPanelTab/SubTabs/ThreadsVariablesSubTab.tscn" id="2_0jpwf"]
|
||||
|
||||
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_dx3i6"]
|
||||
bg_color = Color(0.129589, 0.120703, 0.112057, 1)
|
||||
|
||||
[node name="DebugPanelTab" type="Panel"]
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
theme_override_styles/panel = SubResource("StyleBoxFlat_dx3i6")
|
||||
script = ExtResource("1_yinwn")
|
||||
|
||||
[node name="TabContainer" type="TabContainer" parent="."]
|
||||
@@ -22,10 +18,9 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
current_tab = 1
|
||||
current_tab = 0
|
||||
|
||||
[node name="Threads & Variables" type="Control" parent="TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 0
|
||||
|
||||
@@ -33,6 +28,7 @@ metadata/_tab_index = 0
|
||||
layout_mode = 1
|
||||
|
||||
[node name="Console" type="Control" parent="TabContainer"]
|
||||
visible = false
|
||||
layout_mode = 2
|
||||
metadata/_tab_index = 1
|
||||
|
||||
|
||||
@@ -7,3 +7,46 @@ anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="."]
|
||||
layout_mode = 1
|
||||
anchors_preset = 15
|
||||
anchor_right = 1.0
|
||||
anchor_bottom = 1.0
|
||||
grow_horizontal = 2
|
||||
grow_vertical = 2
|
||||
split_offset = 775
|
||||
|
||||
[node name="HSplitContainer" type="HSplitContainer" parent="HSplitContainer"]
|
||||
layout_mode = 2
|
||||
split_offset = 370
|
||||
|
||||
[node name="Panel" type="Panel" parent="HSplitContainer/HSplitContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/Panel"]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_right = 52.0
|
||||
offset_bottom = 23.0
|
||||
text = "A"
|
||||
|
||||
[node name="Panel2" type="Panel" parent="HSplitContainer/HSplitContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="HSplitContainer/HSplitContainer/Panel2"]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_right = 52.0
|
||||
offset_bottom = 23.0
|
||||
text = "B"
|
||||
|
||||
[node name="Panel3" type="Panel" parent="HSplitContainer"]
|
||||
layout_mode = 2
|
||||
|
||||
[node name="Label" type="Label" parent="HSplitContainer/Panel3"]
|
||||
layout_mode = 0
|
||||
offset_left = 12.0
|
||||
offset_right = 52.0
|
||||
offset_bottom = 23.0
|
||||
text = "C"
|
||||
|
||||
Reference in New Issue
Block a user