Exemple #1
0
        public MainWindow() :
            base(WindowType.Toplevel)
        {
            SetDefaultSize(2160, 2160);
            SetPosition(WindowPosition.Center);
            GtkHelpers.InitializeColors();

            if (!LevelManager.Initialize(this))
            {
                MessageDialog md = new MessageDialog(this,
                                                     DialogFlags.Modal, MessageType.Error,
                                                     ButtonsType.Ok, "Couldn't find levels folder - exiting");
                md.Run();
                md.Destroy();
                Gtk.Application.Quit();
            }

            AddWidgetsAndShow(EditorMode.Level);
        }