1
0
Fork 0
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:
SmallJoker 2019-09-10 21:18:42 +02:00
parent b0baa698a4
commit 9acd36bf99
11 changed files with 54 additions and 10 deletions

View file

@ -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