mirror of
https://github.com/inf112-v20/Fiasko.git
synced 2025-02-01 07:39:35 +01:00
la til username og ipaddress screen
This commit is contained in:
parent
1fa42ed074
commit
447cf22b16
@ -10,6 +10,8 @@ public class ScreenManager {
|
|||||||
private PowerDownScreen powerDownScreen;
|
private PowerDownScreen powerDownScreen;
|
||||||
private LoadingScreen loadingScreen;
|
private LoadingScreen loadingScreen;
|
||||||
private StartMenuScreen startMenuScreen;
|
private StartMenuScreen startMenuScreen;
|
||||||
|
private UsernameScreen usernameScreen;
|
||||||
|
private IPAddressScreen ipAddressScreen;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets an instance of the main menu screen
|
* Gets an instance of the main menu screen
|
||||||
@ -23,6 +25,20 @@ public class ScreenManager {
|
|||||||
return powerDownScreen;
|
return powerDownScreen;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public synchronized IPAddressScreen getIPAddressScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
|
if (this.ipAddressScreen == null) {
|
||||||
|
this.ipAddressScreen = new IPAddressScreen(roboRallyWrapper);
|
||||||
|
}
|
||||||
|
return ipAddressScreen;
|
||||||
|
}
|
||||||
|
|
||||||
|
public synchronized UsernameScreen getUsernameScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
|
if (this.usernameScreen == null) {
|
||||||
|
this.usernameScreen = new UsernameScreen(roboRallyWrapper);
|
||||||
|
}
|
||||||
|
return usernameScreen;
|
||||||
|
}
|
||||||
|
|
||||||
public synchronized StartMenuScreen getStartMenuScreen(RoboRallyWrapper roboRallyWrapper) {
|
public synchronized StartMenuScreen getStartMenuScreen(RoboRallyWrapper roboRallyWrapper) {
|
||||||
if (this.startMenuScreen == null) {
|
if (this.startMenuScreen == null) {
|
||||||
this.startMenuScreen = new StartMenuScreen(roboRallyWrapper);
|
this.startMenuScreen = new StartMenuScreen(roboRallyWrapper);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user