hide scoreboard if 'hide all UI' option is enabled

This commit is contained in:
yugecin 2016-12-10 01:35:48 +01:00
parent c0acb7ad6b
commit 848f83ed29

View File

@ -853,7 +853,7 @@ public class Game extends BasicGameState {
}
// update in-game scoreboard
if (previousScores != null && trackPosition > firstObjectTime) {
if (!Dancer.hideui && previousScores != null && trackPosition > firstObjectTime) {
// show scoreboard if selected, and always in break
if (scoreboardVisible || breakTime > 0) {
currentScoreboardAlpha += 1f / SCOREBOARD_FADE_IN_TIME * delta;
@ -1142,7 +1142,9 @@ public class Game extends BasicGameState {
Utils.takeScreenShot();
break;
case Input.KEY_TAB:
scoreboardVisible = !scoreboardVisible;
if (!Dancer.hideui) {
scoreboardVisible = !scoreboardVisible;
}
break;
case Input.KEY_M:
if (Dancer.mirror) {