Class GuiDialogConfirm
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class GuiDialogConfirm : GuiDialog, IDisposable
- Inheritance
-
GuiDialogConfirm
- Implements
- Inherited Members
- Extension Methods
Constructors
GuiDialogConfirm(ICoreClientAPI, string, Action<bool>)
public GuiDialogConfirm(ICoreClientAPI capi, string text, Action<bool> DidPressButton)
Parameters
capi
ICoreClientAPItext
stringDidPressButton
Action<bool>
Properties
DrawOrder
0 = draw first, 1 = draw last. Used to enforce tooltips and held itemstack always drawn last to be visible.
Vanilla dialogs draw order:
Name tags: -0.1
Chat dialog: 0
Block Interaction help: 0.05
Worldmap HUD: 0.07
Default value for most other dialogs: 0.1
Worldmap Dialog: 0.11
Player and Chest inventories: 0.2
Various config/edit dialogs: 0.2
Handbook: 0.2
Escape menu: 0.89
public override double DrawOrder { get; }
Property Value
ToggleKeyCombinationCode
The key combination string that toggles this GUI object.
public override string ToggleKeyCombinationCode { get; }
Property Value
Methods
OnGuiOpened()
Fires when the GUI is opened.
public override void OnGuiOpened()