Merge pull request #38 from Anuken/4.0

This commit is contained in:
Anuken 2017-12-30 10:59:34 -05:00 committed by GitHub
commit f0c60b9f15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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);