1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix Exit to OS button focus in Pause Menu

This commit is contained in:
ngosang 2015-01-27 01:17:04 +01:00 committed by Craig Robbins
parent a704c04f00
commit dd2bb950be
3 changed files with 15 additions and 4 deletions

View file

@ -246,13 +246,20 @@ public:
m_allowclose = value;
}
void lockSize(bool lock,v2u32 basescreensize=v2u32(0,0)) {
void lockSize(bool lock,v2u32 basescreensize=v2u32(0,0))
{
m_lock = lock;
m_lockscreensize = basescreensize;
}
void removeChildren();
void setInitialFocus();
void setFocus(std::wstring elementname)
{
m_focused_element = elementname;
}
/*
Remove and re-add (or reposition) stuff
*/
@ -348,6 +355,7 @@ private:
IFormSource *m_form_src;
TextDest *m_text_dst;
unsigned int m_formspec_version;
std::wstring m_focused_element;
typedef struct {
bool explicit_size;