mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Formspecs: Introduce formspec_version to mods
This commit is contained in:
parent
b0baa698a4
commit
9acd36bf99
11 changed files with 54 additions and 10 deletions
|
@ -472,7 +472,7 @@ protected:
|
|||
private:
|
||||
IFormSource *m_form_src;
|
||||
TextDest *m_text_dst;
|
||||
u32 m_formspec_version = 0;
|
||||
u16 m_formspec_version = 1;
|
||||
std::string m_focused_element = "";
|
||||
JoystickController *m_joystick;
|
||||
|
||||
|
@ -591,7 +591,7 @@ public:
|
|||
|
||||
void setForm(const std::string &formspec)
|
||||
{
|
||||
m_formspec = FORMSPEC_VERSION_STRING + formspec;
|
||||
m_formspec = formspec;
|
||||
}
|
||||
|
||||
const std::string &getForm() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue