mainmenu: move text (beatmaps, running time, time) to top left
Also fix text color back to white
This commit is contained in:
parent
413e937c13
commit
455d8fe7c8
|
@ -412,18 +412,25 @@ public class MainMenu extends BaseOpsuState {
|
||||||
|
|
||||||
// draw text
|
// draw text
|
||||||
g.setFont(Fonts.MEDIUM);
|
g.setFont(Fonts.MEDIUM);
|
||||||
final String beatmapText = String.format(
|
g.setColor(Color.white);
|
||||||
|
String txt = String.format(
|
||||||
"You have %d beatmaps (%d songs) available!",
|
"You have %d beatmaps (%d songs) available!",
|
||||||
BeatmapSetList.get().getMapCount(),
|
BeatmapSetList.get().getMapCount(),
|
||||||
BeatmapSetList.get().getMapSetCount()
|
BeatmapSetList.get().getMapSetCount()
|
||||||
);
|
);
|
||||||
g.drawString(beatmapText, textMarginX, textTopMarginY);
|
g.drawString(txt, textMarginX, textTopMarginY);
|
||||||
g.drawString(String.format("opsu! has been running for %s.",
|
final long runningTime = System.currentTimeMillis() - programStartTime;
|
||||||
Utils.getTimeString((int) (System.currentTimeMillis() - programStartTime) / 1000)),
|
txt = String.format(
|
||||||
textMarginX, height - textBottomMarginY - (textLineHeight * 2));
|
"%s has been running for %s.",
|
||||||
g.drawString(String.format("It is currently %s.",
|
Constants.PROJECT_NAME,
|
||||||
new SimpleDateFormat("HH:mm").format(new Date())),
|
Utils.getTimeString((int) (runningTime) / 1000)
|
||||||
textMarginX, height - textBottomMarginY - textLineHeight);
|
);
|
||||||
|
g.drawString(txt, textMarginX, textTopMarginY + textLineHeight);
|
||||||
|
txt = String.format(
|
||||||
|
"It is currently %s.",
|
||||||
|
new SimpleDateFormat("HH:mm").format(new Date())
|
||||||
|
);
|
||||||
|
g.drawString(txt, textMarginX, textTopMarginY + textLineHeight * 2);
|
||||||
|
|
||||||
UI.draw(g);
|
UI.draw(g);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user