GdKirie.Tray 0.11.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package GdKirie.Tray --version 0.11.0
                    
NuGet\Install-Package GdKirie.Tray -Version 0.11.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GdKirie.Tray" Version="0.11.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="GdKirie.Tray" Version="0.11.0" />
                    
Directory.Packages.props
<PackageReference Include="GdKirie.Tray" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add GdKirie.Tray --version 0.11.0
                    
#r "nuget: GdKirie.Tray, 0.11.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package GdKirie.Tray@0.11.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=GdKirie.Tray&version=0.11.0
                    
Install as a Cake Addin
#tool nuget:?package=GdKirie.Tray&version=0.11.0
                    
Install as a Cake Tool

GdKirie.Tray

GdKirie.Tray supplies the Godot host for @gd-kirie/tray. It borrows the application's existing Kirie Eventa registry and context.

var registry = GdKirieTray.Register(new KirieEventaJsonRegistry());
var eventa = kirie.CreateEventaContext(registry);
var tray = GdKirieTray.Attach(eventa.Context, GetWindow());

Register must run before creating the Eventa context. Attach must run on Godot's main thread with a window already inside the scene tree. Disposing the returned host removes only Tray handlers and resources.

The returned host also exposes its TrayController for direct C# calls:

tray.Tray.Configure(new TrayConfiguration(
    "res://tray-template.svg",
    "Kirie")
{
    IconAsTemplate = true,
});
tray.Tray.SetMenu([
    new("show", "Show Kirie"),
    new("enabled", "Enabled", "check", Checked: true),
]);

IDs are unique across the menu tree. SetMenu replaces the tree and UpdateItem changes an item by ID. C# may pass a Texture2D directly or set Texture on a menu item.

On macOS, template artwork should use black and transparency as described by Apple NSImage.isTemplate. Passing IconAsTemplate: true outside macOS fails with PlatformNotSupportedException. Other hosts use Godot's status-indicator support and fail when the active display server does not provide it.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.15.0 182 10/21/2026
0.14.1 115 10/17/2026
0.13.0 110 10/13/2026
0.12.0 118 10/12/2026
0.11.0 108 10/10/2026