aboutsummaryrefslogtreecommitdiff
path: root/Mundus/Service/WindowController.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Mundus/Service/WindowController.cs')
-rw-r--r--Mundus/Service/WindowController.cs35
1 files changed, 35 insertions, 0 deletions
diff --git a/Mundus/Service/WindowController.cs b/Mundus/Service/WindowController.cs
new file mode 100644
index 0000000..d317fc6
--- /dev/null
+++ b/Mundus/Service/WindowController.cs
@@ -0,0 +1,35 @@
+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();
+ }
+ }
+}