mirror of
https://gitea.sffnetwork.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-11-21 18:09:47 +00:00
added a username label to the title screen
This commit is contained in:
parent
954ec6e505
commit
37e28d0fcc
2 changed files with 8 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue