blob: 97bb6e7674831072d8c78065ffb8f1baca0afd8c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
using Gtk;
using Mundus.Data.Windows;
namespace Mundus.Service {
public static class WindowController {
public static void ShowSettingsWindow(Window sender) {
sender.Hide();
WI.WSettings.Show(sender);
}
public static void ShowNewGameWindow(Window sender) {
sender.Hide();
WI.WNewGame.SetDefaults();
WI.WNewGame.Show();
}
public static void ShowMainWindow(Window sender) {
sender.Hide();
WI.WMain.Show();
}
public static bool PauseWindowVisible { get; set; }
public static void ShowPauseWindow() {
WI.WPause.Show();
WI.WPause.Present();
PauseWindowVisible = true;
}
public static void ShowMusicWindow() {
WI.WMusic.Show();
WI.WMusic.Present();
}
public static void ShowCraftingWindow() {
WI.WCrafting.Initialize();
WI.WCrafting.Show();
WI.WCrafting.Present();
}
}
}
|