fix back button loading and improve back button chevron animation (itdelatrisu/opsu@c5749e3)

This commit is contained in:
yugecin
2017-02-04 20:17:24 +01:00
parent 1faee53830
commit c741db3923
2 changed files with 19 additions and 4 deletions

View File

@@ -252,7 +252,7 @@ public enum GameImage {
return img.getScaledCopy((h * 0.3f) / img.getHeight());
}
},
MENU_BACK ("menu-back", "menu-back-%d", "png"),
MENU_BACK ("menu-back", "menu-back-%d", "png", false, true),
MENU_BACK_CHEVRON ("menu-back-chevron", "png"),
MENU_BACK_SLOPE("menu-back-slope", "png"),
MENU_BUTTON_BG ("menu-button-background", "png", false, false),
@@ -600,6 +600,18 @@ public enum GameImage {
this.preload = preload;
}
/**
* Constructor for an array of general images.
* @param filename the image file name
* @param filenameFormat the formatted file name string (for loading multiple images)
* @param type the file types (separated by '|')
* @param beatmapSkinnable whether or not the image is beatmap-skinnable
* @param preload whether or not to preload the image
*/
GameImage(String filename, String filenameFormat, String type, boolean beatmapSkinnable, boolean preload) {
this(filename, type, beatmapSkinnable, preload);
this.filenameFormat = filenameFormat;
}
/**
* Returns whether or not the image is beatmap-skinnable.
* @return true if beatmap-skinnable