username change on jsg
BIN
data/ui/mp/join/username_d.png
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
data/ui/mp/join/username_h.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
data/ui/mp/join/username_n.png
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
data/ui/mp/play/connection-high.png
Normal file
|
After Width: | Height: | Size: 303 B |
BIN
data/ui/mp/play/connection-low.png
Normal file
|
After Width: | Height: | Size: 313 B |
BIN
data/ui/mp/play/connection-matanny.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
data/ui/mp/play/connection-medium.png
Normal file
|
After Width: | Height: | Size: 311 B |
BIN
data/ui/mp/play/connection-unknown.png
Normal file
|
After Width: | Height: | Size: 291 B |
|
|
@ -96,7 +96,10 @@ class EnterNameDlg extends GuiControl {
|
|||
enterNameText.position = new Vector(37, 23);
|
||||
enterNameText.extent = new Vector(345, 85);
|
||||
// enterNameText.justify = Center;
|
||||
enterNameText.text.text = '<font face="Arial14"><br/></font><p align="center"><font face="DomCasual48">Well Done!<br/></font><font face="DomCasual32">You have the${["", " second", " third", " fourth", " fifth"][place]} top time!</font></p>';
|
||||
if (place != -1)
|
||||
enterNameText.text.text = '<font face="Arial14"><br/></font><p align="center"><font face="DomCasual48">Well Done!<br/></font><font face="DomCasual32">You have the${["", " second", " third", " fourth", " fifth"][place]} top time!</font></p>';
|
||||
else
|
||||
enterNameText.text.text = '<p align="center"><font face="DomCasual32">Enter your desired display name</font></p>';
|
||||
dlg.addChild(enterNameText);
|
||||
|
||||
dlg.addChild(enterNameEdit);
|
||||
|
|
|
|||
|
|
@ -258,6 +258,14 @@ class JoinServerGui extends GuiImage {
|
|||
}
|
||||
window.addChild(joinBtn);
|
||||
|
||||
var usernameBtn = new GuiButton(loadButtonImages("data/ui/mp/join/username"));
|
||||
usernameBtn.position = new Vector(216, 379);
|
||||
usernameBtn.extent = new Vector(125, 45);
|
||||
usernameBtn.pressedAction = (e) -> {
|
||||
MarbleGame.canvas.pushDialog(new EnterNameDlg(-1, (n) -> {}));
|
||||
}
|
||||
window.addChild(usernameBtn);
|
||||
|
||||
passwordJoin.pressedAction = (e) -> {
|
||||
joinFunc(passwordInput.text.text);
|
||||
}
|
||||
|
|
@ -329,5 +337,9 @@ class JoinServerGui extends GuiImage {
|
|||
window.addChild(listTitle);
|
||||
|
||||
this.addChild(window);
|
||||
|
||||
if (StringTools.trim(Settings.highscoreName).length == 0 || Settings.highscoreName == "Player") {
|
||||
MarbleGame.canvas.pushDialog(new EnterNameDlg(-1, (n) -> {})); // Pls enter name
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||