Transcribed all ingame text to a bundle
This commit is contained in:
@@ -1,5 +1,16 @@
|
||||
package io.anuke.mindustry.resource;
|
||||
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
|
||||
public enum Item{
|
||||
stone, iron, coal, steel, titanium, dirium, uranium;
|
||||
|
||||
public String localized(){
|
||||
return Bundles.get("item."+name() + ".name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return localized();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
package io.anuke.mindustry.resource;
|
||||
|
||||
import com.badlogic.gdx.graphics.Color;
|
||||
import io.anuke.ucore.util.Bundles;
|
||||
|
||||
public enum Liquid{
|
||||
water(Color.ROYAL),
|
||||
@@ -13,4 +14,13 @@ public enum Liquid{
|
||||
private Liquid(Color color){
|
||||
this.color = new Color(color);
|
||||
}
|
||||
|
||||
public String localized(){
|
||||
return Bundles.get("liquid."+name() + ".name");
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString(){
|
||||
return localized();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -104,6 +104,10 @@ public enum Weapon{
|
||||
public final String description;
|
||||
|
||||
Vector2 vector = new Vector2();
|
||||
|
||||
public String localized(){
|
||||
return Bundles.get("weapon."+name() + ".name");
|
||||
}
|
||||
|
||||
private Weapon(float reload, BulletType type, ItemStack... requirements){
|
||||
this.reload = reload;
|
||||
|
||||
Reference in New Issue
Block a user