Funktioniert nun auch wieder unter windows

This commit is contained in:
2014-05-13 23:54:39 +02:00
parent 4153936cbe
commit 65b0478b90
2 changed files with 8 additions and 4 deletions

View File

@@ -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 ();
}

View File

@@ -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);