Table of Contents

Class GuiElementImageBackgroundHelper

Namespace
Vintagestory.API.Client
Assembly
VintagestoryAPI.dll
public static class GuiElementImageBackgroundHelper
Inheritance
GuiElementImageBackgroundHelper
Inherited Members

Methods

AddImageBG(GuiComposer, ElementBounds, AssetLocation, float, float, float)

Adds a background to the current GUI

public static GuiComposer AddImageBG(this GuiComposer composer, ElementBounds bounds, AssetLocation textureLoc, float brightness = 1, float alpha = 1, float scale = 1)

Parameters

composer GuiComposer
bounds ElementBounds

The bounds of the background

textureLoc AssetLocation

The name of the background texture.

brightness float

The brightness of the texture (default: 1f)

alpha float
scale float

Returns

GuiComposer