Display time since achieving recent scores.

- Added history icon by Google: https://www.iconfinder.com/icons/326655/
- Draw history icon and elapsed time next to score buttons if they were achieved within 24 hours.  Conforming to osu! behavior, the elapsed time is not updated in real-time.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-01-29 03:05:09 -05:00
parent 0165abde56
commit f0858f657b
4 changed files with 55 additions and 8 deletions

View File

@@ -465,6 +465,12 @@ public enum GameImage {
return img.getScaledCopy((h * 0.15f) / img.getHeight());
}
},
HISTORY ("history", "png", false, false) {
@Override
protected Image process_sub(Image img, int w, int h) {
return img.getScaledCopy((h * 0.0278f) / img.getHeight());
}
},
REPOSITORY ("repo", "png", false, false) {
@Override
protected Image process_sub(Image img, int w, int h) {