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
ICoreClientAPIThe Client API
inventory
IInventoryThe attached inventory.
sendPacketHandler
Action<object>A handler that should send supplied network packet to the server, if the inventory modifications should be synced
columns
intThe number of columns in the slot grid.
excludingSlots
int[]The slots that have been excluded.
bounds
ElementBoundsThe bounds of the slot grid.
Methods
ComposeElements(Context, ImageSurface)
Composes the elements.
public override void ComposeElements(Context ctx, ImageSurface surface)
Parameters
ctx
Contextsurface
ImageSurfaceThe surface of the GUI.
PostRenderInteractiveElements(float)
The post render of the interactive element.
public override void PostRenderInteractiveElements(float deltaTime)
Parameters
deltaTime
floatThe change in time.