diff options
author | SmallJoker <SmallJoker@users.noreply.github.com> | 2018-03-10 00:24:57 +0100 |
---|---|---|
committer | Andrew Ward <rw@rubenwardy.com> | 2018-03-09 23:24:57 +0000 |
commit | 473d81f2e2ad4b8077c9cfe241032c67d6a795c3 (patch) | |
tree | f1af794b18bb65d3a2327e2f7dc4a25d65a5a749 /src/gui/guiFormSpecMenu.h | |
parent | 12d1e4ff0486f86ae20051daa1135dc7db366023 (diff) | |
download | minetest-473d81f2e2ad4b8077c9cfe241032c67d6a795c3.tar.gz minetest-473d81f2e2ad4b8077c9cfe241032c67d6a795c3.tar.bz2 minetest-473d81f2e2ad4b8077c9cfe241032c67d6a795c3.zip |
Formspecs: Unify textarea and field parsing functions, fix wrong fallback text
* textarea[], field[]: Unify function, fix wrong fallback text
* Remove apparently superflous mainmenumanager.h incldue
* intlGUIEditBox.cpp: make read-only boxes really read-only
* Use elseif (trivial)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r-- | src/gui/guiFormSpecMenu.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h index 8b16f24cf..736dd8ddb 100644 --- a/src/gui/guiFormSpecMenu.h +++ b/src/gui/guiFormSpecMenu.h @@ -484,6 +484,8 @@ private: void parseFieldCloseOnEnter(parserData *data, const std::string &element); void parsePwdField(parserData* data, const std::string &element); void parseField(parserData* data, const std::string &element, const std::string &type); + void createTextField(parserData *data, FieldSpec &spec, + core::rect<s32> &rect, bool is_multiline); void parseSimpleField(parserData* data,std::vector<std::string> &parts); void parseTextArea(parserData* data,std::vector<std::string>& parts, const std::string &type); |