split server #2
This commit is contained in:
parent
3ab017888b
commit
8f8abfa0d3
11 changed files with 419 additions and 44 deletions
|
@ -18,7 +18,7 @@ public class GuiLoading extends Gui {
|
|||
private Bar progressBar1;
|
||||
private Bar progressBar2;
|
||||
|
||||
public static GuiLoading makeLoadTask(final ServerProcess server) {
|
||||
public static GuiLoading makeStartTask(final ServerProcess server) {
|
||||
return new GuiLoading("Starte Server ...", new Callback() {
|
||||
boolean started = false;
|
||||
|
||||
|
@ -40,8 +40,8 @@ public class GuiLoading extends Gui {
|
|||
});
|
||||
}
|
||||
|
||||
public static GuiLoading makeSaveTask(final ServerProcess server) {
|
||||
return new GuiLoading("Speichere Welt ...", new Callback() {
|
||||
public static GuiLoading makeStopTask(final ServerProcess server) {
|
||||
return new GuiLoading("Beende Server ...", new Callback() {
|
||||
public void poll(Game gm, GuiLoading gui) {
|
||||
if(server.isStopped()) {
|
||||
gm.displayGuiScreen(GuiMenu.INSTANCE);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue