summaryrefslogtreecommitdiff
path: root/src/gui/guiFormSpecMenu.h
diff options
context:
space:
mode:
authorDS <vorunbekannt75@web.de>2020-01-11 20:17:11 +0100
committerSmallJoker <SmallJoker@users.noreply.github.com>2020-01-11 20:17:11 +0100
commit4c8af5492ba9c3b9671f5213e81d28a7b856e134 (patch)
treefb411a4415f5b995ede4d9fde52e546d62f75034 /src/gui/guiFormSpecMenu.h
parent3189e4466ba8fee6e7530822c057897f76f24436 (diff)
downloadminetest-4c8af5492ba9c3b9671f5213e81d28a7b856e134.tar.gz
minetest-4c8af5492ba9c3b9671f5213e81d28a7b856e134.tar.bz2
minetest-4c8af5492ba9c3b9671f5213e81d28a7b856e134.zip
Formspec: change the appeareance of the cursor on fields and co. (#8665)
Diffstat (limited to 'src/gui/guiFormSpecMenu.h')
-rw-r--r--src/gui/guiFormSpecMenu.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/gui/guiFormSpecMenu.h b/src/gui/guiFormSpecMenu.h
index d6c762866..155081e08 100644
--- a/src/gui/guiFormSpecMenu.h
+++ b/src/gui/guiFormSpecMenu.h
@@ -143,7 +143,8 @@ class GUIFormSpecMenu : public GUIModalMenu
FieldSpec() = default;
FieldSpec(const std::string &name, const std::wstring &label,
- const std::wstring &default_text, s32 id, int priority = 0) :
+ const std::wstring &default_text, s32 id, int priority = 0,
+ gui::ECURSOR_ICON cursor_icon = ECI_NORMAL) :
fname(name),
flabel(label),
fdefault(unescape_enriched(translate_string(default_text))),
@@ -151,7 +152,8 @@ class GUIFormSpecMenu : public GUIModalMenu
send(false),
ftype(f_Unknown),
is_exit(false),
- priority(priority)
+ priority(priority),
+ fcursor_icon(cursor_icon)
{
}
@@ -165,6 +167,7 @@ class GUIFormSpecMenu : public GUIModalMenu
// Draw priority for formspec version < 3
int priority;
core::rect<s32> rect;
+ gui::ECURSOR_ICON fcursor_icon;
};
struct TooltipSpec