mirror of
https://github.com/moparisthebest/minetest
synced 2024-12-24 08:28:49 -05:00
The password box in the mainmenu is focused if there is already a name and address filled in
This commit is contained in:
parent
efd8dabd91
commit
00bdfad5f6
@ -196,6 +196,8 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
|
|||||||
gui::IGUIEditBox *e =
|
gui::IGUIEditBox *e =
|
||||||
Environment->addEditBox(L"", rect, true, this, 264);
|
Environment->addEditBox(L"", rect, true, this, 264);
|
||||||
e->setPasswordBox(true);
|
e->setPasswordBox(true);
|
||||||
|
if(text_name != L"" && text_address != L"")
|
||||||
|
Environment->setFocus(e);
|
||||||
|
|
||||||
}
|
}
|
||||||
changeCtype("");
|
changeCtype("");
|
||||||
@ -212,7 +214,7 @@ void GUIMainMenu::regenerateGui(v2u32 screensize)
|
|||||||
rect += topleft_client + v2s32(160, 100);
|
rect += topleft_client + v2s32(160, 100);
|
||||||
gui::IGUIElement *e =
|
gui::IGUIElement *e =
|
||||||
Environment->addEditBox(text_address.c_str(), rect, true, this, GUI_ID_ADDRESS_INPUT);
|
Environment->addEditBox(text_address.c_str(), rect, true, this, GUI_ID_ADDRESS_INPUT);
|
||||||
if(text_name != L"")
|
if(text_name != L"" && text_address == L"")
|
||||||
Environment->setFocus(e);
|
Environment->setFocus(e);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user