HudButton
namespace Griff.Runtime;
public sealed class HudButtonA button a system shows on the screen (see HudButtons): what sort it is (a hotbar’s “Slot”, a tool picker’s “Tool”), its place among those of its sort, what it says, where it is (in the world, over the camera’s view), and what pressing it does.
Properties
Section titled “Properties”public int Index { get; init; }public string Kind { get; init; }public string Label { get; init; }public Action Press { get; init; }public HudRect Rect { get; init; }Methods
Section titled “Methods”Deconstruct
Section titled “Deconstruct”public void Deconstruct(out string Kind, out int Index, out string Label, out HudRect Rect, out Action Press)Equals
Section titled “Equals”public override bool Equals(object? obj)Equals
Section titled “Equals”public bool Equals(HudButton? other)GetHashCode
Section titled “GetHashCode”public override int GetHashCode()ToString
Section titled “ToString”public override string ToString()