Splits the GUI into more components to increase maintainability

This commit is contained in:
2020-08-20 18:33:45 +02:00
parent 52946c9aec
commit 5b15fea7b3
9 changed files with 707 additions and 466 deletions

View File

@ -137,7 +137,7 @@ public class Server {
} catch (IOException e) {
e.printStackTrace();
}
controller.getGUI().updateRunning(false);
controller.getGUI().updateGUIElementsWhenServersStartOrStop(false);
return;
}
}
@ -323,7 +323,7 @@ public class Server {
*/
public void addPlayer(String name) {
this.playerList.add(name);
Main.getController().getGUI().addPlayer(name);
Main.getController().getGUI().getServerControlTab().addPlayer(name);
}
/**
@ -333,7 +333,7 @@ public class Server {
*/
public void removePlayer(String name) {
playerList.removeIf(player -> player.equals(name));
Main.getController().getGUI().removePlayer(name);
Main.getController().getGUI().getServerControlTab().removePlayer(name);
}
/**