handle button toggling

This commit is contained in:
Matt Parker
2025-08-27 21:05:35 +10:00
parent c1dbaf4627
commit e26e9dbd9f
5 changed files with 18 additions and 11 deletions

View File

@@ -2,8 +2,8 @@
public static class GodotGlobalEvents
{
public static event Func<BottomPanelType, Task> LeftSideBarButtonClicked = _ => Task.CompletedTask;
public static void InvokeLeftSideBarButtonClicked(BottomPanelType type) => LeftSideBarButtonClicked?.Invoke(type);
public static event Func<BottomPanelType?, Task> BottomPanelTabSelected = _ => Task.CompletedTask;
public static void InvokeBottomPanelTabSelected(BottomPanelType? type) => BottomPanelTabSelected.Invoke(type);
}
public enum BottomPanelType