mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Don't automatically scroll listbox when selecting an item in the middle
This commit is contained in:
parent
d8337034b5
commit
5e312dc40d
2 changed files with 51 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue