run panel and run menu v1

This commit is contained in:
Matt Parker
2025-08-25 18:15:11 +10:00
parent 01844228ef
commit 26ac3e5724
11 changed files with 223 additions and 26 deletions

View File

@@ -0,0 +1,33 @@
using System.Collections.Generic;
using GDExtensionBindgen;
using Godot;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Godot.Features.Run;
public partial class RunPanel : Control
{
private Terminal _terminal = null!;
private TabBar _tabBar = null!;
private Panel _tabsPanel = null!;
public override void _Ready()
{
_tabBar = GetNode<TabBar>("%TabBar");
_tabsPanel = GetNode<Panel>("%TabsPanel");
var test = GetNode<Control>("VBoxContainer/TabsPanel/Terminal");
_terminal = new Terminal(test);
_terminal.Write("Hello from SharpIDE.Godot!\n");
}
public override void _Process(double delta)
{
//_terminal.Write("a");
}
public void NewRunStarted(SharpIdeProjectModel projectModel)
{
var terminal = new Terminal();
_tabBar.AddTab(projectModel.Name);
_tabsPanel.AddChild(terminal);
}
}