aboutsummaryrefslogtreecommitdiff
path: root/src/guiFormSpecMenu.h
diff options
context:
space:
mode:
authorKahrl <kahrl@gmx.net>2013-08-16 00:54:38 +0200
committerKahrl <kahrl@gmx.net>2013-08-16 00:58:03 +0200
commit5e312dc40ddcd8d1e2846c3c2cf5030a6405a056 (patch)
tree41d53ba1a8636b1020838b2d773d155cfc20dd51 /src/guiFormSpecMenu.h
parentd8337034b532638d246227d850154ee6b21c7ac9 (diff)
downloadminetest-5e312dc40ddcd8d1e2846c3c2cf5030a6405a056.tar.gz
minetest-5e312dc40ddcd8d1e2846c3c2cf5030a6405a056.tar.bz2
minetest-5e312dc40ddcd8d1e2846c3c2cf5030a6405a056.zip
Don't automatically scroll listbox when selecting an item in the middle
Diffstat (limited to 'src/guiFormSpecMenu.h')
-rw-r--r--src/guiFormSpecMenu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/guiFormSpecMenu.h b/src/guiFormSpecMenu.h
index 28f11d2e7..f8d7ff1fb 100644
--- a/src/guiFormSpecMenu.h
+++ b/src/guiFormSpecMenu.h
@@ -294,6 +294,7 @@ private:
int bp_set;
v2u32 screensize;
std::map<std::wstring,int> listbox_selections;
+ std::map<std::wstring,int> listbox_scroll;
} parserData;
typedef struct {
@@ -311,6 +312,8 @@ private:
// (Using some black Irrlicht magic)
bool checkListboxClick(std::wstring wlistboxname, int eventtype);
+ gui::IGUIScrollBar* getListboxScrollbar(gui::IGUIListBox *listbox);
+
void parseElement(parserData* data,std::string element);
void parseSize(parserData* data,std::string element);