API reference Obsidian.API.Client.Screens
ItemGrid class
A grid of item stacks that aren't the menu's slots, like an AE2 terminal's network contents or a list of recipes: the client draws them 18 pixels apart, with their tooltips, and raises ItemGrid.Clicked when the player clicks one; the mod decides what that does. Scroll it with a ScrollBar by setting ItemGrid.FirstRow.
public sealed class ItemGrid : Widget
In Obsidian.API.Client.
Remarks
The grid's position is where its first item goes, as for SlotGrid, and it's as big as its cells; its Widget.Width and Widget.Height aren't used.
Constructors
public ItemGrid();Properties
Columns
public int Columns { get; set; }How many cells each row has.
FirstRow
public int FirstRow { get; set; }The row of ItemGrid.Items shown at the top.
Items
public IReadOnlyList<ItemStack> Items { get; set; }The stacks, row by row; null for an empty cell.
Rows
public int Rows { get; set; }How many rows are shown.
Events
Clicked
public event Action<ItemGridClick> Clicked;Raised when the player clicks a cell, even an empty one.