1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add formspec api versioning

This commit is contained in:
sapier 2014-06-25 19:04:47 +02:00
parent 1367895ae2
commit ebf7ea5019
6 changed files with 130 additions and 34 deletions

View file

@ -28,6 +28,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "inventorymanager.h"
#include "modalMenu.h"
#include "guiTable.h"
#include "clientserver.h"
class IGameDef;
class InventoryManager;
@ -339,6 +340,7 @@ private:
TextDest *m_text_dst;
GUIFormSpecMenu **m_ext_ptr;
gui::IGUIFont *m_font;
unsigned int m_formspec_version;
typedef struct {
v2s32 size;
@ -390,6 +392,7 @@ private:
void parseBackgroundColor(parserData* data,std::string element);
void parseListColors(parserData* data,std::string element);
void parseTooltip(parserData* data,std::string element);
bool parseVersionDirect(std::string data);
/**
* check if event is part of a double click
@ -420,7 +423,7 @@ public:
{}
void setForm(std::string formspec) {
m_formspec = formspec;
m_formspec = FORMSPEC_VERSION_STRING + formspec;
}
std::string getForm()