Table of Contents

Class GuiElementMainMenuCell

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class GuiElementMainMenuCell : GuiElementTextBase, IGuiElementCell, IDisposable
Inheritance
GuiElementMainMenuCell
Implements
Inherited Members

Constructors

GuiElementMainMenuCell(ICoreClientAPI, SavegameCellEntry, ElementBounds)

Creates a new Element Cell. A container for TableCells.

public GuiElementMainMenuCell(ICoreClientAPI capi, SavegameCellEntry cell, ElementBounds bounds)

Parameters

capi ICoreClientAPI

The Client API

cell SavegameCellEntry

The base cell

bounds ElementBounds

The bounds of the TableCell

Fields

FixedHeight

public double? FixedHeight

Field Value

double?

MainTextWidthSub

public double MainTextWidthSub

Field Value

double

OnMouseDownOnCellLeft

public Action<int> OnMouseDownOnCellLeft

Field Value

Action<int>

OnMouseDownOnCellRight

public Action<int> OnMouseDownOnCellRight

Field Value

Action<int>

ShowModifyIcons

public bool ShowModifyIcons

Field Value

bool

cellEntry

The table cell information.

public SavegameCellEntry cellEntry

Field Value

SavegameCellEntry

unscaledRightBoxWidth

public static double unscaledRightBoxWidth

Field Value

double

Methods

Compose()

public void Compose()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

OnMouseDownOnElement(MouseEvent, int)

public void OnMouseDownOnElement(MouseEvent args, int elementIndex)

Parameters

args MouseEvent
elementIndex int

OnMouseMoveOnElement(MouseEvent, int)

public void OnMouseMoveOnElement(MouseEvent args, int elementIndex)

Parameters

args MouseEvent
elementIndex int

OnMouseUpOnElement(MouseEvent, int)

public void OnMouseUpOnElement(MouseEvent args, int elementIndex)

Parameters

args MouseEvent
elementIndex int

OnRenderInteractiveElements(ICoreClientAPI, float)

Renders the main menu cell

public void OnRenderInteractiveElements(ICoreClientAPI api, float deltaTime)

Parameters

api ICoreClientAPI
deltaTime float

UpdateCellHeight()

Updates the height of the cell based off the contents.

public void UpdateCellHeight()