4jcraft/Minecraft.Client/Platform/Common/UI/UIControl_TextInput.h
2026-03-09 00:17:42 -05:00

22 lines
453 B
C++

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