use flipped main menu background as playfield image if no image present
This commit is contained in:
parent
a1ce2c7e90
commit
8d109df629
Binary file not shown.
Before Width: | Height: | Size: 162 B After Width: | Height: | Size: 116 B |
Binary file not shown.
Before Width: | Height: | Size: 408 KiB After Width: | Height: | Size: 116 B |
|
@ -90,7 +90,9 @@ public enum GameImage {
|
||||||
PLAYFIELD ("playfield", "png|jpg", false, false) {
|
PLAYFIELD ("playfield", "png|jpg", false, false) {
|
||||||
@Override
|
@Override
|
||||||
protected Image process_sub(Image img, int w, int h) {
|
protected Image process_sub(Image img, int w, int h) {
|
||||||
img.setAlpha(0.7f);
|
if (img.getWidth() == 1 && img.getHeight() == 1) {
|
||||||
|
img = MENU_BG.getImage().getFlippedCopy(/*h*/ false, /*v*/ true);
|
||||||
|
}
|
||||||
return img.getScaledCopy(w, h);
|
return img.getScaledCopy(w, h);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user