Table of Contents

Class GuiElementMainMenuCell

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

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

leftHighlightTexture

protected LoadedTexture leftHighlightTexture

Field Value

LoadedTexture

pressedButtonTexture

protected LoadedTexture pressedButtonTexture

Field Value

LoadedTexture

pressedYOffset

protected double pressedYOffset

Field Value

double

releasedButtonTexture

protected LoadedTexture releasedButtonTexture

Field Value

LoadedTexture

rightHighlightTexture

protected LoadedTexture rightHighlightTexture

Field Value

LoadedTexture

titleTextheight

protected double titleTextheight

Field Value

double

unscaledDepth

protected static int unscaledDepth

Field Value

int

unscaledRightBoxWidth

public static double unscaledRightBoxWidth

Field Value

double

Methods

Compose()

public virtual void Compose()

ComposeButton(Context, ImageSurface, bool)

public virtual void ComposeButton(Context ctx, ImageSurface surface, bool pressed)

Parameters

ctx Context
surface ImageSurface
pressed bool

ComposeHover(bool, ref LoadedTexture)

public virtual void ComposeHover(bool left, ref LoadedTexture texture)

Parameters

left bool
texture LoadedTexture

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 virtual void OnMouseUpOnElement(MouseEvent args, int elementIndex)

Parameters

args MouseEvent
elementIndex int

OnRenderInteractiveElements(ICoreClientAPI, float)

Renders the main menu cell

public virtual 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()