diff --git a/SpaceWarp.Template/templates/SpaceWarpMod/src/SpaceWarpMod/SpaceWarpModPlugin.cs b/SpaceWarp.Template/templates/SpaceWarpMod/src/SpaceWarpMod/SpaceWarpModPlugin.cs index b7064f9..8b9bee6 100644 --- a/SpaceWarp.Template/templates/SpaceWarpMod/src/SpaceWarpMod/SpaceWarpModPlugin.cs +++ b/SpaceWarp.Template/templates/SpaceWarpMod/src/SpaceWarpMod/SpaceWarpModPlugin.cs @@ -29,6 +29,7 @@ public class SpaceWarpModPlugin : BaseSpaceWarpPlugin // AppBar button IDs private const string ToolbarFlightButtonID = "BTN-SpaceWarpModFlight"; private const string ToolbarOabButtonID = "BTN-SpaceWarpModOAB"; + private const string ToolbarKscButtonID = "BTN-SpaceWarpModKSC"; // Singleton instance of the plugin class public static SpaceWarpModPlugin Instance { get; set; } @@ -56,6 +57,17 @@ public override void OnInitialized() // Register OAB AppBar Button Appbar.RegisterOABAppButton( + ModName, + ToolbarKscButtonID, + AssetManager.GetAsset($"{Info.Metadata.GUID}/images/icon.png"), + () => + { + _isWindowOpen = !_isWindowOpen; + } + ); + + // Register KSC AppBar Button + Appbar.RegisterKSCAppButton( ModName, ToolbarOabButtonID, AssetManager.GetAsset($"{Info.Metadata.GUID}/images/icon.png"),