diff options
author | sapier <Sapier at GMX dot net> | 2014-06-19 18:17:35 +0200 |
---|---|---|
committer | sapier <Sapier at GMX dot net> | 2014-07-16 15:02:56 +0200 |
commit | 65b8b524c02df853163fc1284a00a684a046d67c (patch) | |
tree | 2d5262f153efcd5740096edd690472a2b4eaa4a3 /src/guiFormSpecMenu.h | |
parent | 903d343b08df17c88eafdd698af5b9f73ef6e389 (diff) | |
download | minetest-65b8b524c02df853163fc1284a00a684a046d67c.tar.gz minetest-65b8b524c02df853163fc1284a00a684a046d67c.tar.bz2 minetest-65b8b524c02df853163fc1284a00a684a046d67c.zip |
Add srollbar formspec element
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r-- | src/guiFormSpecMenu.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h index 72a188bc5..15bc628d1 100644 --- a/src/guiFormSpecMenu.h +++ b/src/guiFormSpecMenu.h @@ -40,6 +40,7 @@ typedef enum { f_TabHeader, f_CheckBox, f_DropDown, + f_ScrollBar, f_Unknown } FormspecFieldType; @@ -306,7 +307,8 @@ protected: std::vector<std::pair<FieldSpec,GUITable*> > m_tables; std::vector<std::pair<FieldSpec,gui::IGUICheckBox*> > m_checkboxes; std::map<std::wstring, TooltipSpec> m_tooltips; - + std::vector<std::pair<FieldSpec,gui::IGUIScrollBar*> > m_scrollbars; + ItemSpec *m_selected_item; u32 m_selected_amount; bool m_selected_dragging; @@ -397,6 +399,7 @@ private: void parseListColors(parserData* data,std::string element); void parseTooltip(parserData* data,std::string element); bool parseVersionDirect(std::string data); + void parseScrollBar(parserData* data, std::string element); /** * check if event is part of a double click |