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:
@@ -344,6 +344,8 @@ public class Slider implements HitObject {
|
||||
|
||||
float approachScale = (timeDiff >= 0) ? 1 + (timeDiff * 2f / game.getApproachTime()) : 1f;
|
||||
float alpha = (approachScale > 3.3f) ? 0f : 1f - (approachScale - 1f) / 2.7f;
|
||||
float oldAlpha = color.a;
|
||||
float oldAlphaFade = Utils.COLOR_WHITE_FADE.a;
|
||||
color.a = alpha;
|
||||
Utils.COLOR_WHITE_FADE.a = alpha;
|
||||
|
||||
@@ -376,8 +378,8 @@ public class Slider implements HitObject {
|
||||
score.drawSymbolNumber(hitObject.getComboNumber(), x, y,
|
||||
hitCircle.getWidth() * 0.40f / score.getDefaultSymbolImage(0).getHeight());
|
||||
|
||||
color.a = 1f;
|
||||
Utils.COLOR_WHITE_FADE.a = 1f;
|
||||
color.a = oldAlpha;
|
||||
Utils.COLOR_WHITE_FADE.a = oldAlphaFade;
|
||||
|
||||
// repeats
|
||||
if (hitObject.getRepeatCount() - 1 > currentRepeats) {
|
||||
|
||||
Reference in New Issue
Block a user