Class GuiElementChatInput
- Namespace
- Vintagestory.API.Client
- Assembly
- VintagestoryAPI.dll
public class GuiElementChatInput : GuiElementEditableTextBase, IDisposable
- Inheritance
-
GuiElementChatInput
- Implements
- Inherited Members
- Extension Methods
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
ICoreClientAPIThe client API
bounds
ElementBoundsThe 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
Contextsurface
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
floatThe change in time.