Moved most GameImage scaling/processing to a single file.

- To scale an image, override process_sub() in its enum definition.  All GameImages call the process() method when loaded.
- Skin GameImage overrides will now call process() immediately, so there's no more need for the hackish scaling status.

Signed-off-by: Jeffrey Han <itdelatrisu@gmail.com>
This commit is contained in:
Jeffrey Han
2015-01-07 22:36:39 -05:00
parent 1e806bc9c6
commit 8671718ce3
5 changed files with 132 additions and 121 deletions

View File

@@ -203,8 +203,11 @@ public class Utils {
backButton.setHoverDir(MenuButton.Expand.UP_RIGHT);
// set default game images
for (GameImage img : GameImage.values())
GameImage.init(width, height);
for (GameImage img : GameImage.values()) {
img.setDefaultImage();
img.process();
}
// initialize game mods
for (GameMod mod : GameMod.values())