fix syntax

This commit is contained in:
RandomityGuy 2024-05-02 21:23:30 +05:30
parent 3ab119abdd
commit d3e8a92779

View file

@ -56,16 +56,16 @@ class EnterNameDlg extends GuiImage {
textFrame.addChild(textInput);
textInput.text.text = Settings.highscoreName == "" ? "Player Name" : Settings.highscoreName;
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);
}
// textInput.text.onFocus = (e) -> {
// dlg.vertSizing = Bottom;
// dlg.position = new Vector(110, 56);
// dlg.render(MarbleGame.canvas.scene2d);
// }
// textInput.text.onFocusLost = (e) -> {
// dlg.vertSizing = Center;
// dlg.position = new Vector(110, 112);
// dlg.render(MarbleGame.canvas.scene2d);
// }
var okButton = new GuiXboxButton("Ok", 120);
okButton.position = new Vector(211, 248);