mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-19 22:43:32 +00:00
added a username label to the title screen
This commit is contained in:
@@ -153,6 +153,10 @@ void StartMenuScreen::render( int xm, int ym, float a )
|
|||||||
{
|
{
|
||||||
renderBackground();
|
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)
|
#if defined(RPI)
|
||||||
TextureId id = minecraft->textures->loadTexture("gui/pi_title.png");
|
TextureId id = minecraft->textures->loadTexture("gui/pi_title.png");
|
||||||
#else
|
#else
|
||||||
|
|||||||
@@ -162,6 +162,10 @@ void StartMenuScreen::render( int xm, int ym, float a )
|
|||||||
{
|
{
|
||||||
renderBackground();
|
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);
|
glEnable2(GL_BLEND);
|
||||||
|
|
||||||
#if defined(RPI)
|
#if defined(RPI)
|
||||||
|
|||||||
Reference in New Issue
Block a user