Files
cafeberry/Minecraft.Client/Common/UI/UIControl_TextInput.h
T
2026-09-13 19:41:44 -07:00

27 lines
589 B
C++

#pragma once
#include "UIControl_Base.h"
class UIControl_TextInput : public UIControl_Base
{
private:
IggyName m_textName, m_funcChangeState, m_funcSetCharLimit;
IggyName m_funcMoveCaretLeft, m_funcMoveCaretRight;
bool m_bHasFocus;
public:
UIControl_TextInput();
virtual bool setupControl(UIScene *scene, IggyValuePath *parent, const string &controlName);
void init(UIString label, int id);
void ReInit();
virtual void setFocus(bool focus);
void SetCharLimit(int iLimit);
void SyncCaret(int caretIndex, int textLength);
void RefreshFocus();
};