Table of Contents

Class GuiElementDialogBackground

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public class GuiElementDialogBackground : GuiElement, IDisposable
Inheritance
GuiElementDialogBackground
Implements
Inherited Members

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

capi ICoreClientAPI

The Client API

bounds ElementBounds

The bounds of the element.

withTitlebar bool

Minor style adjustments to accomodate title bar

strokeWidth double

The top padding area of the GUI

alpha float

Fields

Alpha

public float Alpha

Field Value

float

FullBlur

public bool FullBlur

Field Value

bool

Shade

public bool Shade

Field Value

bool

Methods

ComposeElements(Context, ImageSurface)

Composes the elements.

public override void ComposeElements(Context ctx, ImageSurface surface)

Parameters

ctx Context
surface ImageSurface

The surface of the GUI.