From 473d81f2e2ad4b8077c9cfe241032c67d6a795c3 Mon Sep 17 00:00:00 2001 From: SmallJoker Date: Sat, 10 Mar 2018 00:24:57 +0100 Subject: 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) --- src/gui/guiFormSpecMenu.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/guiFormSpecMenu.h') 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 &rect, bool is_multiline); void parseSimpleField(parserData* data,std::vector &parts); void parseTextArea(parserData* data,std::vector& parts, const std::string &type); -- cgit v1.2.3