Choose a better cell texture depending on screen size
This commit is contained in:
parent
4e5c4fd453
commit
9663bc5376
20 changed files with 3 additions and 3 deletions
|
@ -59,7 +59,7 @@ public class SkinLoader {
|
|||
}
|
||||
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -153,7 +153,7 @@ public class Theme {
|
|||
}
|
||||
|
||||
String cellTextureFile = json.getString("cell_texture");
|
||||
cellTexture = new Texture(Gdx.files.internal("ui/cells/"+cellTextureFile));
|
||||
cellTexture = SkinLoader.loadPng("cells/"+cellTextureFile);
|
||||
|
||||
return this;
|
||||
}
|
||||
|
|
|
@ -37,7 +37,7 @@ public abstract class BaseScorer implements BinSerializable {
|
|||
|
||||
// The board size is required when calculating the score
|
||||
BaseScorer(final Klooni game, GameLayout layout, int highScore) {
|
||||
cupTexture = SkinLoader.loadPng("cup");
|
||||
cupTexture = SkinLoader.loadPng("cup.png");
|
||||
cupColor = Klooni.theme.currentScore.cpy();
|
||||
cupArea = new Rectangle();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue