mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 08:35:20 +02:00
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()
This commit is contained in:
committed by
Loïc Blot
parent
fad263dec9
commit
792752997c
@@ -110,6 +110,12 @@ public:
|
||||
text, guienv, tsrc, dtime, percent, clouds);
|
||||
}
|
||||
|
||||
inline static void draw_menu_scene(
|
||||
gui::IGUIEnvironment *guienv, float dtime, bool clouds)
|
||||
{
|
||||
s_singleton->_draw_menu_scene(guienv, dtime, clouds);
|
||||
}
|
||||
|
||||
inline static void draw_scene(video::SColor skycolor, bool show_hud,
|
||||
bool show_minimap, bool draw_wield_tool, bool draw_crosshair)
|
||||
{
|
||||
@@ -138,6 +144,9 @@ private:
|
||||
ITextureSource *tsrc, float dtime = 0, int percent = 0,
|
||||
bool clouds = true);
|
||||
|
||||
void _draw_menu_scene(gui::IGUIEnvironment *guienv, float dtime = 0,
|
||||
bool clouds = true);
|
||||
|
||||
void _draw_scene(video::SColor skycolor, bool show_hud, bool show_minimap,
|
||||
bool draw_wield_tool, bool draw_crosshair);
|
||||
|
||||
|
Reference in New Issue
Block a user