aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.h
diff options
context:
space:
mode:
authorsapier <Sapier at GMX dot net>2014-06-19 18:17:35 +0200
committersapier <Sapier at GMX dot net>2014-07-16 15:02:56 +0200
commit65b8b524c02df853163fc1284a00a684a046d67c (patch)
tree2d5262f153efcd5740096edd690472a2b4eaa4a3 /src/guiFormSpecMenu.h
parent903d343b08df17c88eafdd698af5b9f73ef6e389 (diff)
downloadminetest-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.h5
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