fixed name entry
This commit is contained in:
@ -2057,7 +2057,9 @@ void TetrisApp::Impl::runLoop()
|
||||
const bool isCoopEntry = (game && game->getMode() == GameMode::Cooperate && coopGame);
|
||||
const char* enterName = isCoopEntry ? "ENTER NAMES:" : "ENTER NAME:";
|
||||
int enW=0, enH=0; pixelFont.measure(enterName, 1.0f, enW, enH);
|
||||
pixelFont.draw(renderer, boxX + (boxW - enW) * 0.5f + contentOffsetX, boxY + 160 + contentOffsetY, enterName, 1.0f, {200, 200, 220, 255});
|
||||
if (!isCoopEntry) {
|
||||
pixelFont.draw(renderer, boxX + (boxW - enW) * 0.5f + contentOffsetX, boxY + 160 + contentOffsetY, enterName, 1.0f, {200, 200, 220, 255});
|
||||
}
|
||||
|
||||
const float inputW = isCoopEntry ? 260.0f : 300.0f;
|
||||
const float inputH = 40.0f;
|
||||
|
||||
Reference in New Issue
Block a user