more delectable selection pane (#6318)
This commit is contained in:
@@ -252,6 +252,7 @@ public class MassDriver extends Block{
|
|||||||
@Override
|
@Override
|
||||||
public boolean onConfigureTileTapped(Building other){
|
public boolean onConfigureTileTapped(Building other){
|
||||||
if(this == other){
|
if(this == other){
|
||||||
|
if(link == -1) deselect();
|
||||||
configure(-1);
|
configure(-1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -432,6 +432,7 @@ public class PayloadMassDriver extends PayloadBlock{
|
|||||||
@Override
|
@Override
|
||||||
public boolean onConfigureTileTapped(Building other){
|
public boolean onConfigureTileTapped(Building other){
|
||||||
if(this == other){
|
if(this == other){
|
||||||
|
if(link == -1) deselect();
|
||||||
configure(-1);
|
configure(-1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ public class CoreBlock extends StorageBlock{
|
|||||||
|
|
||||||
//support everything
|
//support everything
|
||||||
envEnabled = Env.any;
|
envEnabled = Env.any;
|
||||||
drawDisabled = false;
|
|
||||||
replaceable = false;
|
replaceable = false;
|
||||||
rebuildable = false;
|
rebuildable = false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -118,6 +118,16 @@ public class CommandCenter extends Block{
|
|||||||
table.label(() -> team.data().command.localized()).style(Styles.outlineLabel).center().growX().get().setAlignment(Align.center);
|
table.label(() -> team.data().command.localized()).style(Styles.outlineLabel).center().growX().get().setAlignment(Align.center);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean onConfigureTileTapped(Building other){
|
||||||
|
if(this == other){
|
||||||
|
deselect();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void write(Writes write){
|
public void write(Writes write){
|
||||||
super.write(write);
|
super.write(write);
|
||||||
|
|||||||
Reference in New Issue
Block a user