Class GuiElementItemSlotGridExcl
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Builds slot grid with exclusions to the grid. Open in GitHub
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
capiICoreClientAPIThe Client API
inventoryIInventoryThe attached inventory.
sendPacketHandlerAction<object>A handler that should send supplied network packet to the server, if the inventory modifications should be synced
columnsintThe number of columns in the slot grid.
excludingSlotsint[]The slots that have been excluded.
boundsElementBoundsThe bounds of the slot grid.
Methods
ComposeElements(Context, ImageSurface)
Composes the elements.
public override void ComposeElements(Context ctx, ImageSurface surface)
Parameters
ctxContextsurfaceImageSurfaceThe surface of the GUI.
PostRenderInteractiveElements(float)
The post render of the interactive element.
public override void PostRenderInteractiveElements(float deltaTime)
Parameters
deltaTimefloatThe change in time.