Skip to content

MenuCell

Namespace Nfty.Ticket in assembly Nfty.Ticket.

public record MenuCell

Where one variant's art sits inside the atlas.

Constructors

MenuCell(string, int, int, int, int)

public MenuCell(string Key, int X, int Y, int Width, int Height);

Parameters

  • Key (string) - The cell key, from MenuBook.CellKey().
  • X (int) - Left edge in the atlas, in pixels.
  • Y (int) - Top edge in the atlas, in pixels.
  • Width (int) - Cell width.
  • Height (int) - Cell height.

Properties

Height

public int Height { get; init; }

Cell height.

Key

public string Key { get; init; }

The cell key, from MenuBook.CellKey().

Width

public int Width { get; init; }

Cell width.

X

public int X { get; init; }

Left edge in the atlas, in pixels.

Y

public int Y { get; init; }

Top edge in the atlas, in pixels.