diff --git a/src/client/gui/screens/StartMenuScreen.cpp b/src/client/gui/screens/StartMenuScreen.cpp index b98487d..732bf47 100755 --- a/src/client/gui/screens/StartMenuScreen.cpp +++ b/src/client/gui/screens/StartMenuScreen.cpp @@ -153,6 +153,10 @@ void StartMenuScreen::render( int xm, int ym, float a ) { renderBackground(); + // Show current username in the top-left corner + std::string username = minecraft->options.username.empty() ? "unknown" : minecraft->options.username; + drawString(font, std::string("Username: ") + username, 2, 2, 0xffffffff); + #if defined(RPI) TextureId id = minecraft->textures->loadTexture("gui/pi_title.png"); #else diff --git a/src/client/gui/screens/touch/TouchStartMenuScreen.cpp b/src/client/gui/screens/touch/TouchStartMenuScreen.cpp index ccf96b6..aea2f97 100755 --- a/src/client/gui/screens/touch/TouchStartMenuScreen.cpp +++ b/src/client/gui/screens/touch/TouchStartMenuScreen.cpp @@ -161,6 +161,10 @@ bool StartMenuScreen::isInGameScreen() { return false; } void StartMenuScreen::render( int xm, int ym, float a ) { renderBackground(); + + // Show current username in the top-left corner + std::string username = minecraft->options.username.empty() ? "unknown" : minecraft->options.username; + drawString(font, std::string("Username: ") + username, 2, 2, 0xffffffff); glEnable2(GL_BLEND);