Skip to content

HudButton

namespace Griff.Runtime;
public sealed class HudButton

A 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.

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; }
public void Deconstruct(out string Kind, out int Index, out string Label, out HudRect Rect, out Action Press)
public override bool Equals(object? obj)
public bool Equals(HudButton? other)
public override int GetHashCode()
public override string ToString()