Add confirmation on new player registration (#6849)
authorMuhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Sat, 13 Jan 2018 11:07:16 +0000 (18:07 +0700)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 13 Jan 2018 11:07:16 +0000 (12:07 +0100)
commit792752997c5ae2aaa4f54d0a2e2af2a96d7d1e9f
tree568b578dd8cd5d0e579a4debc560d088c880d5e7
parentfad263dec9e1fa7ae0886f768e22d8ee74e8553b
Add confirmation on new player registration (#6849)

* Attempt to add registration confirmation

Using SRP auth mechanism, if server sent AUTH_MECHANISM_FIRST_SRP that means the player isn't exist.
Also tell player about the server and chosen username.
Local game has localhost as IP address of the server.
Add RenderingEngine::draw_menu_scene() to draw GUI and clouds background.
aborted -> connection_aborted

* Rewrite information message text

Client::promptConfirmRegister() -> Client::promptConfirmRegistration()
src/client.cpp
src/client.h
src/client/renderingengine.cpp
src/client/renderingengine.h
src/game.cpp
src/gui/CMakeLists.txt
src/gui/guiConfirmRegistration.cpp [new file with mode: 0644]
src/gui/guiConfirmRegistration.h [new file with mode: 0644]
src/network/clientpackethandler.cpp