mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Make dropdowns show the string that was their argument.
This makes it work even if it contains escape sequences, which didn't work before.
This commit is contained in:
parent
bb925479a5
commit
d5c3db9c41
2 changed files with 24 additions and 2 deletions
|
@ -357,6 +357,7 @@ public:
|
|||
bool pausesGame() { return doPause; }
|
||||
|
||||
GUITable* getTable(const std::string &tablename);
|
||||
std::vector<std::string>* getDropDownValues(const std::string &name);
|
||||
|
||||
#ifdef __ANDROID__
|
||||
bool getAndroidUIInput();
|
||||
|
@ -395,6 +396,7 @@ protected:
|
|||
std::vector<std::pair<FieldSpec,gui::IGUICheckBox*> > m_checkboxes;
|
||||
std::map<std::string, TooltipSpec> m_tooltips;
|
||||
std::vector<std::pair<FieldSpec,gui::IGUIScrollBar*> > m_scrollbars;
|
||||
std::vector<std::pair<FieldSpec, std::vector<std::string> > > m_dropdowns;
|
||||
|
||||
ItemSpec *m_selected_item;
|
||||
f32 m_timer1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue