Feature/sub screen fix

This commit is contained in:
jancoow
2015-07-09 12:56:45 +02:00
2 changed files with 9 additions and 7 deletions
+5 -5
View File
@@ -417,7 +417,7 @@ public class MenuState extends GameState {
g2.setFont(textFont);
boolean highscoresFound = true;
int HIGHSCORES_TO_DISPLAY = 5;
int HIGHSCORES_TO_DISPLAY = 7;
List<Highscore> highscores = sql.getHighscoresToday(selectedToSong(selected), sh.getCurrentSong().getSongs().get(difSelect));
if(highscores.isEmpty())
@@ -428,10 +428,10 @@ public class MenuState extends GameState {
highscoresFound = false;
}
else
g2.drawString("All Time Highscores", 30, 300);
g2.drawString("All Time Highscores", 30, 235);
}
else
g2.drawString("Daily Highscore", 30, 300);
g2.drawString("Daily Highscore", 30, 235);
g2.setFont(textFont2);
if(highscoresFound)
@@ -442,7 +442,7 @@ public class MenuState extends GameState {
{
Highscore hi = highscores.get(i);
g2.drawString(hi.getName() + " - " + hi.getScore(), 30, 350 + i*100);
g2.drawString(" " + (i+1) + "# " + hi.getName() + " - " + hi.getScore(), 30, 290 + i*80);
}
}
else
@@ -530,4 +530,4 @@ public class MenuState extends GameState {
}
}
}
}
+4 -2
View File
@@ -29,9 +29,11 @@ public class DifficultyButton {
g2.setColor(Color.WHITE);
g2.fillRect(0, 0, 300, 75);
g2.setColor(Color.ORANGE);
g2.drawRect(0, 0, 300, 75);
//g2.drawRect(0-2, 0-2, 304, 79);
// g2.drawRect(0, 0, 300, 75);
// g2.drawRect(0-2, 0-2, 304, 79);
g2.drawRect(0, 0, 304, 79);
g2.drawRect(2, 2, 300, 75);
g2.setColor(color);
Font textFont2 = new Font("OCR A Extended", Font.BOLD, 50);
g2.setFont(textFont2);