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
capiICoreClientAPIThe client API
boundsElementBoundsThe bounds of the chat input.
OnTextChangedAction<string>The event fired when the text is altered.
Methods
ComposeTextElements(Context, ImageSurface)
public override void ComposeTextElements(Context ctx, ImageSurface surface)
Parameters
ctxContextsurfaceImageSurface
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
deltaTimefloatThe change in time.