Choose a better cell texture depending on screen size

This commit is contained in:
Lonami Exo 2017-05-07 18:43:25 +02:00
parent 4e5c4fd453
commit 9663bc5376
20 changed files with 3 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 823 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 421 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 505 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 655 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 422 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 779 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

View file

@ -59,7 +59,7 @@ public class SkinLoader {
} }
public static Texture loadPng(String name) { public static Texture loadPng(String name) {
final String filename = "ui/x" + bestMultiplier + "/" + name + ".png"; final String filename = "ui/x" + bestMultiplier + "/" + name;
return new Texture(Gdx.files.internal(filename)); return new Texture(Gdx.files.internal(filename));
} }
} }

View file

@ -153,7 +153,7 @@ public class Theme {
} }
String cellTextureFile = json.getString("cell_texture"); String cellTextureFile = json.getString("cell_texture");
cellTexture = new Texture(Gdx.files.internal("ui/cells/"+cellTextureFile)); cellTexture = SkinLoader.loadPng("cells/"+cellTextureFile);
return this; return this;
} }

View file

@ -37,7 +37,7 @@ public abstract class BaseScorer implements BinSerializable {
// The board size is required when calculating the score // The board size is required when calculating the score
BaseScorer(final Klooni game, GameLayout layout, int highScore) { BaseScorer(final Klooni game, GameLayout layout, int highScore) {
cupTexture = SkinLoader.loadPng("cup"); cupTexture = SkinLoader.loadPng("cup.png");
cupColor = Klooni.theme.currentScore.cpy(); cupColor = Klooni.theme.currentScore.cpy();
cupArea = new Rectangle(); cupArea = new Rectangle();