GdKirie.Tray
0.11.0
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
<PackageReference Include="GdKirie.Tray" Version="0.11.0" />
<PackageVersion Include="GdKirie.Tray" Version="0.11.0" />
<PackageReference Include="GdKirie.Tray" />
paket add GdKirie.Tray --version 0.11.0
#r "nuget: GdKirie.Tray, 0.11.0"
#:package GdKirie.Tray@0.11.0
#addin nuget:?package=GdKirie.Tray&version=0.11.0
#tool nuget:?package=GdKirie.Tray&version=0.11.0
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 | Versions 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. |
-
net10.0
- GdKirie.EventaAdapter (>= 0.11.0)
- GodotSharp (>= 4.7.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.