Small GUI tweaks.
- FPS display is now much more subtle. - A couple of main menu tweaks. Other changes: - Restore old alpha levels of Utils.COLOR_* constants when modifying them. - Utils.loadFont() can load any font effect, not just a ColorEffect. Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
@@ -334,6 +334,7 @@ public class Game extends BasicGameState {
|
||||
GameImage.SCOREBAR_BG.getImage().getHeight(),
|
||||
GameImage.SCOREBAR_KI.getImage().getHeight()
|
||||
);
|
||||
float oldAlpha = Utils.COLOR_WHITE_FADE.a;
|
||||
if (timeDiff < -500)
|
||||
Utils.COLOR_WHITE_FADE.a = (1000 + timeDiff) / 500f;
|
||||
Utils.FONT_MEDIUM.drawString(
|
||||
@@ -341,7 +342,7 @@ public class Game extends BasicGameState {
|
||||
String.format("%d retries and counting...", retries),
|
||||
Utils.COLOR_WHITE_FADE
|
||||
);
|
||||
Utils.COLOR_WHITE_FADE.a = 1f;
|
||||
Utils.COLOR_WHITE_FADE.a = oldAlpha;
|
||||
}
|
||||
|
||||
if (isLeadIn())
|
||||
|
||||
Reference in New Issue
Block a user