1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-15 18:57:08 +00:00

Generic NodeMetadata text input

This commit is contained in:
Perttu Ahola 2011-11-13 12:48:05 +02:00
parent 79c9f14aec
commit 64fa59e24f
3 changed files with 20 additions and 28 deletions

View file

@ -36,8 +36,9 @@ public:
virtual void serializeBody(std::ostream &os);
virtual std::string infoText();
std::string getText(){ return m_text; }
void setText(std::string t){ m_text = t; }
virtual bool allowsTextInput(){ return true; }
virtual std::string getText(){ return m_text; }
virtual void setText(const std::string &t){ m_text = t; }
private:
std::string m_text;