/// <summary>
        /// Initializes the editor after the home screen has been shown.
        /// </summary>
        public void CreateEditor()
        {
            DateTime start = DateTime.Now;

            if (HomeScreen != null)
            {
                HomeScreen.Dispose();
            }

            MainGridLayout.Rows[1] = new GridSize(31, Unit.Pixels);
            MainGridLayout.Rows[4] = new GridSize(1, Unit.Pixels);
            MainGridLayout.Rows[5] = new GridSize(26, Unit.Pixels);
            MainGridLayout.UpdateContainers();

            Editor.InitializeEditor();

            Editor.LoadProjectSettings();
            Data.LoadGameData();

            Editor.SetMode(Editor.ProjectSettings.LastMode, true);

            TimeSpan time = DateTime.Now - start;

            StatusBar.QueueMessage($"Project loaded ({time.Milliseconds}ms)", true, 5000);
        }
Example #2
0
        void ReleaseDesignerOutlets()
        {
            if (HomeScreen != null)
            {
                HomeScreen.Dispose();
                HomeScreen = null;
            }

            if (peteTable != null)
            {
                peteTable.Dispose();
                peteTable = null;
            }
        }