Class GuiElementMainMenuCell
- Namespace
 - Vintagestory.API.Client
 
- Assembly
 - VintagestoryAPI.dll
 
public class GuiElementMainMenuCell : GuiElementTextBase, IGuiElementCell, IDisposable
  - Inheritance
 - 
      
      
      
      
      GuiElementMainMenuCell
 
- Implements
 
- 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
unscaledRightBoxWidth
public static double unscaledRightBoxWidth
  Field Value
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
argsMouseEventelementIndexint
OnMouseMoveOnElement(MouseEvent, int)
public void OnMouseMoveOnElement(MouseEvent args, int elementIndex)
  Parameters
argsMouseEventelementIndexint
OnMouseUpOnElement(MouseEvent, int)
public void OnMouseUpOnElement(MouseEvent args, int elementIndex)
  Parameters
argsMouseEventelementIndexint
OnRenderInteractiveElements(ICoreClientAPI, float)
Renders the main menu cell
public void OnRenderInteractiveElements(ICoreClientAPI api, float deltaTime)
  Parameters
apiICoreClientAPIdeltaTimefloat
UpdateCellHeight()
Updates the height of the cell based off the contents.
public void UpdateCellHeight()