mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-12 16:15:20 +02:00
Formspec: change the appeareance of the cursor on fields and co. (#8665)
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user