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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user