custom popup

This commit is contained in:
Matt Parker
2025-08-25 18:18:24 +10:00
parent 26ac3e5724
commit 47b8e3e0e3
7 changed files with 82 additions and 7 deletions

View File

@@ -0,0 +1,23 @@
using Godot;
using SharpIDE.Application.Features.SolutionDiscovery.VsPersistence;
namespace SharpIDE.Godot.Features.Run;
public partial class RunMenuItem : HBoxContainer
{
public SharpIdeProjectModel Project { get; set; } = null!;
private Label _label = null!;
private Button _runButton = null!;
public override void _Ready()
{
_label = GetNode<Label>("Label");
_runButton = GetNode<Button>("RunButton");
_runButton.Pressed += OnRunButtonPressed;
_label.Text = Project.Name;
}
private async void OnRunButtonPressed()
{
await Singletons.RunService.RunProject(Project).ConfigureAwait(false);
}
}