mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-03-12 09:50:45 -07:00
Core database in multiplayer on mobile in pause menu
This commit is contained in:
parent
8f6afcecfb
commit
ed36204bed
1 changed files with 12 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
|||
package mindustry.ui.dialogs;
|
||||
|
||||
import arc.*;
|
||||
import arc.scene.ui.*;
|
||||
import arc.scene.ui.layout.*;
|
||||
import mindustry.*;
|
||||
import mindustry.editor.*;
|
||||
|
|
@ -101,7 +102,17 @@ public class PausedDialog extends BaseDialog{
|
|||
|
||||
cont.row();
|
||||
|
||||
cont.buttonRow("@load", Icon.download, load::show).disabled(b -> net.active());
|
||||
cont.buttonRow("@load", Icon.download, () -> {
|
||||
if(net.active()){
|
||||
ui.database.show();
|
||||
}else{
|
||||
load.show();
|
||||
}
|
||||
}).update(t -> {
|
||||
Image image = (Image)t.getChildren().first();
|
||||
image.setDrawable(net.active() ? Icon.book : Icon.download);
|
||||
t.setText(net.active() ? "@database" : "@load");
|
||||
});
|
||||
}else if(state.isCampaign()){
|
||||
cont.buttonRow("@research", Icon.tree, ui.research::show);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue