Class GuiDialogGeneric
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
Mainly used for block entity based guis
public abstract class GuiDialogGeneric : GuiDialog, IDisposable
- Inheritance
-
GuiDialogGeneric
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
GuiDialogGeneric(string, ICoreClientAPI)
Constructor for a generic Dialog.
public GuiDialogGeneric(string DialogTitle, ICoreClientAPI capi)
Parameters
DialogTitle
stringThe title of the dialog.
capi
ICoreClientAPIThe Client API
Fields
DialogTitle
The title of the Dialog.
public string DialogTitle
Field Value
Properties
Attributes
The tree attributes for this dialog.
public virtual ITreeAttribute Attributes { get; protected set; }
Property Value
ToggleKeyCombinationCode
The key combination string that toggles this GUI object.
public override string ToggleKeyCombinationCode { get; }
Property Value
UnregisterOnClose
Should this Dialog de-register itself once closed?
public override bool UnregisterOnClose { get; }
Property Value
Methods
FocusElement(int)
Focuses a specific element in the single composer.
public virtual void FocusElement(int index)
Parameters
index
intIndex of the element.
IsInRangeOfBlock(BlockPos)
Checks if the player is in range of the block.
public virtual bool IsInRangeOfBlock(BlockPos blockEntityPos)
Parameters
blockEntityPos
BlockPosThe block's position.
Returns
- bool
In range or no?
Recompose()
Recomposes the dialog with it's set of elements.
public virtual void Recompose()
UnfocusElements()
Unfocuses the elements in each composer.
public virtual void UnfocusElements()