BlockHud
namespace Griff.Modules.BlockWorlds;
public sealed class BlockHudWhere 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.
Properties
Section titled “Properties”public float Gap { get; }RecipeHeight
Section titled “RecipeHeight”public float RecipeHeight { get; }SlotSize
Section titled “SlotSize”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; }Methods
Section titled “Methods”Hotbar
Section titled “Hotbar”public HudRect Hotbar(int count)The whole hotbar.
HotbarSlot
Section titled “HotbarSlot”public HudRect HotbarSlot(int index, int count)A hotbar slot, centered along the bottom.
RecipeRow
Section titled “RecipeRow”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).
Recipes
Section titled “Recipes”public HudRect Recipes(int count, bool hotbar)The panel behind the crafting list, its title included.
Fields
Section titled “Fields”Recipe
Section titled “Recipe”public const string RecipeWhat a crafting recipe’s HudButton is (its Kind).
public const string SlotWhat a hotbar slot’s HudButton is (its Kind).