Funktioniert nun auch wieder unter windows
This commit is contained in:
@@ -21,7 +21,6 @@ namespace WorldOfPeacecraft
|
||||
|
||||
public Gui ()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public void SetBackend (IBackend backend)
|
||||
@@ -29,6 +28,13 @@ namespace WorldOfPeacecraft
|
||||
Backend = backend;
|
||||
}
|
||||
|
||||
public void CallComponentConstructors()
|
||||
{
|
||||
ChatPanel = new ChatPanel (Backend);
|
||||
MapPanel = new MapPanel (Backend);
|
||||
OnlinePlayerList = new OnlinePlayerList (Backend);
|
||||
}
|
||||
|
||||
public void FocusMap ()
|
||||
{
|
||||
MapPanel.Focus();
|
||||
@@ -101,9 +107,6 @@ namespace WorldOfPeacecraft
|
||||
}
|
||||
|
||||
public void LoadResources(){
|
||||
ChatPanel = new ChatPanel (Backend);
|
||||
MapPanel = new MapPanel (Backend);
|
||||
OnlinePlayerList = new OnlinePlayerList (Backend);
|
||||
MapPanel.LoadResources ();
|
||||
OnlinePlayerList.LoadResources ();
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@ namespace WorldOfPeacecraft
|
||||
Gui gui = new Gui();
|
||||
Backend backend = new Backend(gui);
|
||||
gui.SetBackend(backend);
|
||||
gui.CallComponentConstructors ();
|
||||
SplashScreen splash = new SplashScreen (gui,backend);
|
||||
splash.GuiHasLoaded += OnGuiLoaded;
|
||||
Application.Run (splash);
|
||||
|
||||
Reference in New Issue
Block a user