Hide block types

This commit is contained in:
Anuken
2020-05-24 15:42:14 -04:00
parent e16aa5a74a
commit d202c6ebdd
2 changed files with 14 additions and 6 deletions

View File

@@ -38,12 +38,19 @@ public class UnitTypes implements ContentList{
@Override
public void load(){
block = new UnitType("block"){{
speed = 0f;
hitsize = 0f;
health = 1;
rotateSpeed = 360f;
}};
block = new UnitType("block"){
{
speed = 0f;
hitsize = 0f;
health = 1;
rotateSpeed = 360f;
}
@Override
public boolean isHidden(){
return true;
}
};
dagger = new UnitType("dagger"){{
speed = 0.5f;

View File

@@ -240,6 +240,7 @@ public class WaveInfoDialog extends FloatingDialog{
dialog.cont.pane(p -> {
int i = 0;
for(UnitType type : content.units()){
if(type.isHidden()) continue;
p.button(t -> {
t.left();
t.image(type.icon(mindustry.ui.Cicon.medium)).size(40f).padRight(2f);