Class PluginHudDescriptor
- Namespace
- AcDream.Plugin.Abstractions
- Assembly
- AcDream.Plugin.Abstractions.dll
Stable metadata used to create a plugin-owned overlay.
public sealed record PluginHudDescriptor : IEquatable<PluginHudDescriptor>
- Inheritance
-
PluginHudDescriptor
- Implements
- Inherited Members
Remarks
No client draws overlays yet: every host answers with NoOpPluginRenderRegistry. The unit and origin of every position and size in this file are fixed by the first client that does.
Constructors
PluginHudDescriptor(string, string, PluginHudBounds, bool, bool, bool, bool, int)
Stable metadata used to create a plugin-owned overlay.
public PluginHudDescriptor(string Id, string Title, PluginHudBounds DefaultBounds, bool Visible = true, bool Movable = true, bool Resizable = true, bool ClickThrough = false, int Layer = 0)
Parameters
IdstringThe overlay's name, unique within the plugin that adds it.
TitlestringThe name shown to the player for this overlay.
DefaultBoundsPluginHudBoundsWhere the overlay sits, and how large it is, until the player or the plugin moves it.
VisibleboolWhether the overlay starts out shown.
MovableboolWhether the player may drag the overlay.
ResizableboolWhether the player may resize the overlay.
ClickThroughboolWhen true, pointer input passes through the overlay to whatever is under it, and the overlay receives none.
LayerintDrawing order among overlays: a higher layer is drawn over a lower one.
Remarks
No client draws overlays yet: every host answers with NoOpPluginRenderRegistry. The unit and origin of every position and size in this file are fixed by the first client that does.
Properties
ClickThrough
When true, pointer input passes through the overlay to whatever is under it, and the overlay receives none.
public bool ClickThrough { get; init; }
Property Value
DefaultBounds
Where the overlay sits, and how large it is, until the player or the plugin moves it.
public PluginHudBounds DefaultBounds { get; init; }
Property Value
Id
The overlay's name, unique within the plugin that adds it.
public string Id { get; init; }
Property Value
Layer
Drawing order among overlays: a higher layer is drawn over a lower one.
public int Layer { get; init; }
Property Value
Movable
Whether the player may drag the overlay.
public bool Movable { get; init; }
Property Value
Resizable
Whether the player may resize the overlay.
public bool Resizable { get; init; }
Property Value
Title
The name shown to the player for this overlay.
public string Title { get; init; }
Property Value
Visible
Whether the overlay starts out shown.
public bool Visible { get; init; }