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
capiICoreClientAPIThe Client API
cellSavegameCellEntryThe base cell
boundsElementBoundsThe bounds of the TableCell
Fields
FixedHeight
public double? FixedHeight
Field Value
MainTextWidthSub
public double MainTextWidthSub
Field Value
OnMouseDownOnCellLeft
public Action<int> OnMouseDownOnCellLeft
Field Value
OnMouseDownOnCellRight
public Action<int> OnMouseDownOnCellRight
Field Value
ShowModifyIcons
public bool ShowModifyIcons
Field Value
cellEntry
The table cell information.
public SavegameCellEntry cellEntry
Field Value
leftHighlightTexture
protected LoadedTexture leftHighlightTexture
Field Value
pressedButtonTexture
protected LoadedTexture pressedButtonTexture
Field Value
pressedYOffset
protected double pressedYOffset
Field Value
releasedButtonTexture
protected LoadedTexture releasedButtonTexture
Field Value
rightHighlightTexture
protected LoadedTexture rightHighlightTexture
Field Value
titleTextheight
protected double titleTextheight
Field Value
unscaledDepth
protected static int unscaledDepth
Field Value
unscaledRightBoxWidth
public static double unscaledRightBoxWidth
Field Value
Methods
Compose()
public virtual void Compose()
ComposeButton(Context, ImageSurface, bool)
public virtual void ComposeButton(Context ctx, ImageSurface surface, bool pressed)
Parameters
ctxContextsurfaceImageSurfacepressedbool
ComposeHover(bool, ref LoadedTexture)
public virtual void ComposeHover(bool left, ref LoadedTexture texture)
Parameters
leftbooltextureLoadedTexture
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
argsMouseEventelementIndexint
OnMouseMoveOnElement(MouseEvent, int)
public void OnMouseMoveOnElement(MouseEvent args, int elementIndex)
Parameters
argsMouseEventelementIndexint
OnMouseUpOnElement(MouseEvent, int)
public virtual void OnMouseUpOnElement(MouseEvent args, int elementIndex)
Parameters
argsMouseEventelementIndexint
OnRenderInteractiveElements(ICoreClientAPI, float)
Renders the main menu cell
public virtual void OnRenderInteractiveElements(ICoreClientAPI api, float deltaTime)
Parameters
apiICoreClientAPIdeltaTimefloat
UpdateCellHeight()
Updates the height of the cell based off the contents.
public void UpdateCellHeight()