Hide block types
This commit is contained in:
@@ -38,12 +38,19 @@ public class UnitTypes implements ContentList{
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void load(){
|
public void load(){
|
||||||
block = new UnitType("block"){{
|
block = new UnitType("block"){
|
||||||
speed = 0f;
|
{
|
||||||
hitsize = 0f;
|
speed = 0f;
|
||||||
health = 1;
|
hitsize = 0f;
|
||||||
rotateSpeed = 360f;
|
health = 1;
|
||||||
}};
|
rotateSpeed = 360f;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isHidden(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
dagger = new UnitType("dagger"){{
|
dagger = new UnitType("dagger"){{
|
||||||
speed = 0.5f;
|
speed = 0.5f;
|
||||||
|
|||||||
@@ -240,6 +240,7 @@ public class WaveInfoDialog extends FloatingDialog{
|
|||||||
dialog.cont.pane(p -> {
|
dialog.cont.pane(p -> {
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for(UnitType type : content.units()){
|
for(UnitType type : content.units()){
|
||||||
|
if(type.isHidden()) continue;
|
||||||
p.button(t -> {
|
p.button(t -> {
|
||||||
t.left();
|
t.left();
|
||||||
t.image(type.icon(mindustry.ui.Cicon.medium)).size(40f).padRight(2f);
|
t.image(type.icon(mindustry.ui.Cicon.medium)).size(40f).padRight(2f);
|
||||||
|
|||||||
Reference in New Issue
Block a user