Core database in multiplayer on mobile in pause menu
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user