Started working on discovery, implemented GWT saving
This commit is contained in:
12
core/src/io/anuke/mindustry/ui/JoinDialog.java
Normal file
12
core/src/io/anuke/mindustry/ui/JoinDialog.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package io.anuke.mindustry.ui;
|
||||
|
||||
public class JoinDialog extends FloatingDialog {
|
||||
|
||||
public JoinDialog(){
|
||||
super("$text.joingame");
|
||||
}
|
||||
|
||||
void setup(){
|
||||
content().clear();
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,7 @@ public class MenuDialog extends FloatingDialog{
|
||||
ui.showPrefs();
|
||||
});
|
||||
|
||||
if(!Vars.gwt){
|
||||
//if(!Vars.gwt){
|
||||
content().row();
|
||||
content().addButton("$text.savegame", () -> {
|
||||
save.show();
|
||||
@@ -54,7 +54,7 @@ public class MenuDialog extends FloatingDialog{
|
||||
content().addButton("$text.loadgame", () -> {
|
||||
load.show();
|
||||
});
|
||||
}
|
||||
//}
|
||||
|
||||
content().row();
|
||||
|
||||
|
||||
@@ -34,10 +34,11 @@ public class MenuFragment implements Fragment{
|
||||
|
||||
add(new MenuButton("$text.tutorial", group, ()-> control.playMap(world.maps().getMap("tutorial"))));
|
||||
row();
|
||||
|
||||
|
||||
add(new MenuButton("$text.loadgame", group, ui::showLoadGame));
|
||||
row();
|
||||
|
||||
if(!gwt){
|
||||
add(new MenuButton("$text.loadgame", group, ui::showLoadGame));
|
||||
row();
|
||||
|
||||
add(new MenuButton("$text.editor", group, ui::showEditor));
|
||||
row();
|
||||
|
||||
Reference in New Issue
Block a user