Skip to content

BlockHud

namespace Griff.Modules.BlockWorlds;
public sealed class BlockHud

Where a block world’s HUD goes for a view: the Hotbar along the bottom with the Crafting list over it. Sized from the view’s height, so it looks the same at any zoom.

public float Gap { get; }
public float RecipeHeight { get; }
public float SlotSize { get; }
public float Unit { get; }

A hundredth of the view’s height: the HUD’s unit of size.

public HudRect View { get; }
public HudRect Hotbar(int count)

The whole hotbar.

public HudRect HotbarSlot(int index, int count)

A hotbar slot, centered along the bottom.

public HudRect RecipeRow(int index, int count, bool hotbar)

A row of the crafting list, stacked up from just over the hotbar (or the bottom, without one).

public HudRect Recipes(int count, bool hotbar)

The panel behind the crafting list, its title included.

public const string Recipe

What a crafting recipe’s HudButton is (its Kind).

public const string Slot

What a hotbar slot’s HudButton is (its Kind).