diff options
author | BlockMen <nmuelll@web.de> | 2013-11-02 04:26:44 +0100 |
---|---|---|
committer | BlockMen <nmuelll@web.de> | 2013-11-03 22:14:37 +0100 |
commit | 25edae00ea1d5a9af4a6599fc7c200bb810fbd49 (patch) | |
tree | 68e1179e2c2316a4b43ae3a50511bb8012a4a2ca /src/guiFormSpecMenu.h | |
parent | 0b788892898013cd430c48b98e21a3fd111c3c7f (diff) | |
download | minetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.tar.gz minetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.tar.bz2 minetest-25edae00ea1d5a9af4a6599fc7c200bb810fbd49.zip |
Reworked formspecs and kahrl's hexcolor parser
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r-- | src/guiFormSpecMenu.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index 20ab52e8b..8b0e50379 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -285,6 +285,14 @@ protected: bool m_allowclose; bool m_lock; v2u32 m_lockscreensize; + + bool m_bgfullscreen; + bool m_slotborder; + bool m_clipbackground; + video::SColor m_bgcolor; + video::SColor m_slotbg_n; + video::SColor m_slotbg_h; + video::SColor m_slotbordercolor; private: typedef struct { v2s32 size; @@ -334,8 +342,10 @@ private: void parseItemImageButton(parserData* data,std::string element); void parseTabHeader(parserData* data,std::string element); void parseBox(parserData* data,std::string element); + void parseBackgroundColor(parserData* data,std::string element); + void parseListColors(parserData* data,std::string element); - bool parseColor(std::string color, irr::video::SColor& outcolor); + bool parseColor(std::string &value, video::SColor &color, bool quiet); }; class FormspecFormSource: public IFormSource |