- Fixed a bug in new customize dialog.

- Chat should work correctly when pressing enter now.

tags : #story[1245]
This commit is contained in:
Alistair McIntyre
2017-09-12 17:26:52 +12:00
parent 90a54beb8d
commit 20b656b16d
3 changed files with 2 additions and 4 deletions
@@ -128,6 +128,7 @@ public class LobbyController implements Initializable {
BoatCustomizeController controller = dialog.getController(); BoatCustomizeController controller = dialog.getController();
controller.setParentController(this); controller.setParentController(this);
controller.setPlayerColor(this.playersColor);
return customizationDialog; return customizationDialog;
} }
@@ -727,8 +727,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
} }
public boolean isChatInputFocused() { public boolean isChatInputFocused() {
// return chatInput.focusedProperty().getValue(); return chatInput.focusedProperty().getValue();
return false;
} }
public String readChatInput() { public String readChatInput() {
@@ -43,8 +43,6 @@ public class BoatCustomizeController implements Initializable{
submitCustomization(); submitCustomization();
}); });
setPlayerColor(lobbyController.playersColor);
socketThread = ViewManager.getInstance().getGameClient().getServerThread(); socketThread = ViewManager.getInstance().getGameClient().getServerThread();
RequiredFieldValidator playerNameReqValidator = new RequiredFieldValidator(); RequiredFieldValidator playerNameReqValidator = new RequiredFieldValidator();