Table of Contents

Class GuiElementItemSlotGridExcl

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll

Builds slot grid with exclusions to the grid.

public class GuiElementItemSlotGridExcl : GuiElementItemSlotGridBase, IDisposable
Inheritance
GuiElementItemSlotGridExcl
Implements
Inherited Members
Extension Methods

Constructors

GuiElementItemSlotGridExcl(ICoreClientAPI, IInventory, Action<object>, int, int[], ElementBounds)

Creates a new slot grid with exclusions.

public GuiElementItemSlotGridExcl(ICoreClientAPI capi, IInventory inventory, Action<object> sendPacketHandler, int columns, int[] excludingSlots, ElementBounds bounds)

Parameters

capi ICoreClientAPI

The Client API

inventory IInventory

The attached inventory.

sendPacketHandler Action<object>

A handler that should send supplied network packet to the server, if the inventory modifications should be synced

columns int

The number of columns in the slot grid.

excludingSlots int[]

The slots that have been excluded.

bounds ElementBounds

The bounds of the slot grid.

Methods

ComposeElements(Context, ImageSurface)

Composes the elements.

public override void ComposeElements(Context ctx, ImageSurface surface)

Parameters

ctx Context
surface ImageSurface

The surface of the GUI.

PostRenderInteractiveElements(float)

The post render of the interactive element.

public override void PostRenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The change in time.