mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
move the dialog up to avoid keyboard covering it
This commit is contained in:
parent
15155aecaf
commit
04a3a4007f
1 changed files with 10 additions and 0 deletions
|
|
@ -65,6 +65,16 @@ class EnterNameDlg extends GuiControl {
|
||||||
haxe.Timer.delay(() -> {
|
haxe.Timer.delay(() -> {
|
||||||
enterNameEdit.text.focus();
|
enterNameEdit.text.focus();
|
||||||
}, 5);
|
}, 5);
|
||||||
|
enterNameEdit.text.onFocus = (e) -> {
|
||||||
|
dlg.vertSizing = Bottom;
|
||||||
|
dlg.position = new Vector(110, 56);
|
||||||
|
dlg.render(MarbleGame.canvas.scene2d);
|
||||||
|
}
|
||||||
|
enterNameEdit.text.onFocusLost = (e) -> {
|
||||||
|
dlg.vertSizing = Center;
|
||||||
|
dlg.position = new Vector(110, 112);
|
||||||
|
dlg.render(MarbleGame.canvas.scene2d);
|
||||||
|
}
|
||||||
|
|
||||||
var okbutton = new GuiButton(loadButtonImages("data/ui/endgame/ok"));
|
var okbutton = new GuiButton(loadButtonImages("data/ui/endgame/ok"));
|
||||||
okbutton.position = new Vector(151, 184);
|
okbutton.position = new Vector(151, 184);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue