mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
FormSpec: Add position and anchor elements (#5284)
This commit is contained in:
parent
22df959343
commit
6de83a2756
3 changed files with 109 additions and 8 deletions
|
@ -447,6 +447,8 @@ private:
|
|||
bool explicit_size;
|
||||
v2f invsize;
|
||||
v2s32 size;
|
||||
v2f32 offset;
|
||||
v2f32 anchor;
|
||||
core::rect<s32> rect;
|
||||
v2s32 basepos;
|
||||
v2u32 screensize;
|
||||
|
@ -502,6 +504,10 @@ private:
|
|||
bool parseVersionDirect(std::string data);
|
||||
bool parseSizeDirect(parserData* data, std::string element);
|
||||
void parseScrollBar(parserData* data, std::string element);
|
||||
bool parsePositionDirect(parserData *data, const std::string &element);
|
||||
void parsePosition(parserData *data, const std::string &element);
|
||||
bool parseAnchorDirect(parserData *data, const std::string &element);
|
||||
void parseAnchor(parserData *data, const std::string &element);
|
||||
|
||||
void tryClose();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue