Class GuiElementDialogBackground
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class GuiElementDialogBackground : GuiElement, IDisposable
- Inheritance
-
GuiElementDialogBackground
- Implements
- Inherited Members
- Extension Methods
Constructors
GuiElementDialogBackground(ICoreClientAPI, ElementBounds, bool, double, float)
Adds a Background to the Dialog.
public GuiElementDialogBackground(ICoreClientAPI capi, ElementBounds bounds, bool withTitlebar, double strokeWidth = 0, float alpha = 1)
Parameters
capiICoreClientAPIThe Client API
boundsElementBoundsThe bounds of the element.
withTitlebarboolMinor style adjustments to accomodate title bar
strokeWidthdoubleThe top padding area of the GUI
alphafloat
Fields
Alpha
public float Alpha
Field Value
FullBlur
public bool FullBlur
Field Value
Shade
public bool Shade
Field Value
Methods
ComposeElements(Context, ImageSurface)
Composes the elements.
public override void ComposeElements(Context ctx, ImageSurface surface)
Parameters
ctxContextsurfaceImageSurfaceThe surface of the GUI.