From a00f5a414b051f15bfee66544891aa7ea48b3d34 Mon Sep 17 00:00:00 2001 From: Matt Parker <61717342+MattParkerDev@users.noreply.github.com> Date: Wed, 27 Aug 2025 20:43:13 +1000 Subject: [PATCH] create BuildPanel scene --- .../BottomPanel/BottomPanelManager.cs | 8 ++++ .../BottomPanel/BottomPanelManager.cs.uid | 1 + .../Features/Build/BuildPanel.tscn | 42 +++++++++++++++++++ src/SharpIDE.Godot/IdeRoot.cs | 9 +++- src/SharpIDE.Godot/IdeRoot.tscn | 20 +++++++-- src/SharpIDE.Godot/Singletons.cs | 4 +- 6 files changed, 79 insertions(+), 5 deletions(-) create mode 100644 src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs create mode 100644 src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs.uid create mode 100644 src/SharpIDE.Godot/Features/Build/BuildPanel.tscn diff --git a/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs new file mode 100644 index 0000000..84abff4 --- /dev/null +++ b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs @@ -0,0 +1,8 @@ +using Godot; + +namespace SharpIDE.Godot.Features.BottomPanel; + +public partial class BottomPanelManager : Panel +{ + +} \ No newline at end of file diff --git a/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs.uid b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs.uid new file mode 100644 index 0000000..10be36f --- /dev/null +++ b/src/SharpIDE.Godot/Features/BottomPanel/BottomPanelManager.cs.uid @@ -0,0 +1 @@ +uid://cvvgp42r3nml8 diff --git a/src/SharpIDE.Godot/Features/Build/BuildPanel.tscn b/src/SharpIDE.Godot/Features/Build/BuildPanel.tscn new file mode 100644 index 0000000..8596795 --- /dev/null +++ b/src/SharpIDE.Godot/Features/Build/BuildPanel.tscn @@ -0,0 +1,42 @@ +[gd_scene format=3 uid="uid://co6dkhdolriej"] + +[node name="BuildPanel" type="Control"] +layout_mode = 3 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 + +[node name="VBoxContainer" type="VBoxContainer" parent="."] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +theme_override_constants/separation = 0 + +[node name="MarginContainer" type="MarginContainer" parent="VBoxContainer"] +layout_mode = 2 +theme_override_constants/margin_left = 5 +theme_override_constants/margin_top = 5 +theme_override_constants/margin_right = 5 +theme_override_constants/margin_bottom = 5 + +[node name="Label" type="Label" parent="VBoxContainer/MarginContainer"] +layout_mode = 2 +text = "Build" + +[node name="TerminalContainer" type="Control" parent="VBoxContainer"] +layout_mode = 2 +size_flags_vertical = 3 + +[node name="Terminal" type="Terminal" parent="VBoxContainer/TerminalContainer"] +layout_mode = 1 +anchors_preset = 15 +anchor_right = 1.0 +anchor_bottom = 1.0 +grow_horizontal = 2 +grow_vertical = 2 +size_flags_vertical = 3 diff --git a/src/SharpIDE.Godot/IdeRoot.cs b/src/SharpIDE.Godot/IdeRoot.cs index a109881..627e7a8 100644 --- a/src/SharpIDE.Godot/IdeRoot.cs +++ b/src/SharpIDE.Godot/IdeRoot.cs @@ -12,6 +12,7 @@ namespace SharpIDE.Godot; public partial class IdeRoot : Control { private Button _openSlnButton = null!; + private Button _buildSlnButton = null!; private FileDialog _fileDialog = null!; private SharpIdeCodeEdit _sharpIdeCodeEdit = null!; private SolutionExplorerPanel _solutionExplorerPanel = null!; @@ -25,6 +26,7 @@ public partial class IdeRoot : Control MSBuildLocator.RegisterDefaults(); _openSlnButton = GetNode