Table of Contents

Class GuiElementSliderOld

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

Constructors

GuiElementSliderOld(ICoreClientAPI, ActionConsumable<int>, ElementBounds)

public GuiElementSliderOld(ICoreClientAPI capi, ActionConsumable<int> onNewSliderValue, ElementBounds bounds)

Parameters

capi ICoreClientAPI
onNewSliderValue ActionConsumable<int>
bounds ElementBounds

Methods

ComposeElements(Context, ImageSurface)

Composes the elements.

public override void ComposeElements(Context ctxStatic, ImageSurface surfaceStatic)

Parameters

ctxStatic Context

The context of the components.

surfaceStatic ImageSurface

GetValue()

public int GetValue()

Returns

int

OnMouseDownOnElement(ICoreClientAPI, MouseEvent)

The event fired when the mouse is pressed while on the element. Called after OnMouseDown and tells the engine that the event is handled.

public override void OnMouseDownOnElement(ICoreClientAPI api, MouseEvent args)

Parameters

api ICoreClientAPI

The Client API

args MouseEvent

The mouse event args.

OnMouseMove(ICoreClientAPI, MouseEvent)

The event fired when the mouse is moved.

public override void OnMouseMove(ICoreClientAPI api, MouseEvent args)

Parameters

api ICoreClientAPI

The Client API.

args MouseEvent

The mouse event arguments.

OnMouseUp(ICoreClientAPI, MouseEvent)

The event fired when the mouse is released.

public override void OnMouseUp(ICoreClientAPI api, MouseEvent args)

Parameters

api ICoreClientAPI

The Client API.

args MouseEvent

The arguments for the mouse event.

RenderInteractiveElements(float)

Renders the element as an interactive element.

public override void RenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The change in time.

SetAlarmValue(int)

public void SetAlarmValue(int value)

Parameters

value int

setValues(int, int, int, int, string)

public void setValues(int currentValue, int minValue, int maxValue, int step, string unit = "")

Parameters

currentValue int
minValue int
maxValue int
step int
unit string