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:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user