forked from mirrors/kolyah35-minecraft-pe-0.6.1
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();
|
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue