Table of Contents

Class GuiElementChatInput

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

Constructors

GuiElementChatInput(ICoreClientAPI, ElementBounds, Action<string>)

Adds a chat input element to the UI.

public GuiElementChatInput(ICoreClientAPI capi, ElementBounds bounds, Action<string> OnTextChanged)

Parameters

capi ICoreClientAPI

The client API

bounds ElementBounds

The bounds of the chat input.

OnTextChanged Action<string>

The event fired when the text is altered.

Methods

ComposeTextElements(Context, ImageSurface)

public override void ComposeTextElements(Context ctx, ImageSurface surface)

Parameters

ctx Context
surface ImageSurface

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public override void Dispose()

RenderInteractiveElements(float)

Renders the element as an interactive element.

public override void RenderInteractiveElements(float deltaTime)

Parameters

deltaTime float

The change in time.