1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 08:35:20 +02:00

Don't automatically scroll listbox when selecting an item in the middle

This commit is contained in:
Kahrl
2013-08-16 00:54:38 +02:00
parent d8337034b5
commit 5e312dc40d
2 changed files with 51 additions and 2 deletions

View File

@@ -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);