Added some new resources

This commit is contained in:
Anuken
2017-12-29 19:59:58 -05:00
parent e39f9c624d
commit 54662ee83f
3 changed files with 8 additions and 3 deletions

View File

@@ -13,7 +13,10 @@ public class Item{
steel = new Item("steel"),
titanium = new Item("titanium"),
dirium = new Item("dirium"),
uranium = new Item("uranium");
uranium = new Item("uranium"),
sand = new Item("sand"),
glass = new Item("glass"),
silicon = new Item("silicon");
public final int id;
public final String name;

View File

@@ -12,7 +12,8 @@ public class Liquid {
water = new Liquid("water", Color.ROYAL),
plasma = new Liquid("plasma", Color.CORAL),
lava = new Liquid("lava", Color.valueOf("ed5334")),
oil = new Liquid("oil", Color.valueOf("292929"));
oil = new Liquid("oil", Color.valueOf("292929")),
cryofluid = new Liquid("cryofluid", Color.SKY);
public final Color color;
public final String name;

View File

@@ -299,7 +299,8 @@ public class BlocksFragment implements Fragment{
int amount = control.getItems()[i];
if(amount == 0) continue;
String formatted = amount > 99999999 ? "inf" : format(amount);
Image image = new Image(Draw.region("icon-" + Item.getByID(i).name));
Image image = new Image(Draw.hasRegion("icon-" + Item.getByID(i).name) ?
Draw.region("icon-" + Item.getByID(i).name) : Draw.region("blank"));
Label label = new Label(formatted);
label.setFontScale(fontscale*1.5f);
itemtable.add(image).size(8*3);