mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-26 16:51:04 -07:00
more delectable selection pane (#6318)
This commit is contained in:
parent
af7c11c4b7
commit
c96b723aaa
5 changed files with 13 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ public class WaveInfoDialog extends BaseDialog{
|
|||
dialog.hide();
|
||||
}).marginLeft(12f).disabled(b -> Core.app.getClipboardText() == null || Core.app.getClipboardText().isEmpty()).row();
|
||||
|
||||
t.button("@settings.reset", Icon.upload, style, () -> ui.showConfirm("@confirm", "@settings.clear.confirm", () -> {
|
||||
t.button("@settings.reset", Icon.upload, style, () -> ui.showConfirm("@confirm", "@settings.clear.confirm", () -> {
|
||||
groups = JsonIO.copy(waves.get());
|
||||
buildGroups();
|
||||
dialog.hide();
|
||||
|
|
|
|||
|
|
@ -252,6 +252,7 @@ public class MassDriver extends Block{
|
|||
@Override
|
||||
public boolean onConfigureTileTapped(Building other){
|
||||
if(this == other){
|
||||
if(link == -1) deselect();
|
||||
configure(-1);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -432,6 +432,7 @@ public class PayloadMassDriver extends PayloadBlock{
|
|||
@Override
|
||||
public boolean onConfigureTileTapped(Building other){
|
||||
if(this == other){
|
||||
if(link == -1) deselect();
|
||||
configure(-1);
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -53,7 +53,6 @@ public class CoreBlock extends StorageBlock{
|
|||
|
||||
//support everything
|
||||
envEnabled = Env.any;
|
||||
drawDisabled = false;
|
||||
replaceable = 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);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onConfigureTileTapped(Building other){
|
||||
if(this == other){
|
||||
deselect();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void write(Writes write){
|
||||
super.write(write);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue