mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-03 04:44:24 +07:00
Merge pull request #38 from Anuken/4.0
This commit is contained in:
commit
f0c60b9f15
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user