aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIControl_TextInput.h
blob: 98032d85835cb316a8120385d605438e87e8af71 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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 string &controlName);

	void init(UIString label, int id);
	void ReInit();

	virtual void setFocus(bool focus);

	void SetCharLimit(int iLimit);
};