Ejemplo n.º 1
0
 private void pathsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmPaths == null || frmPaths.IsDisposed)
     {
         frmPaths = new frmPaths(mapperSettings);
     }
     frmPaths.Show();
 }
Ejemplo n.º 2
0
        private void LoadResources()
        {
            SettingsManager.Init();
            mapperSettings = SettingsManager.LoadSettings();

            if (mapperSettings.UI.Overlay == null)
            {
                mapperSettings.UI.Overlay = new OverlaySettings();
                mapperSettings.UI.Overlay.CritterFormat = "PID=%PID% [%P_ScriptName%@%P_FuncName%]\nBag=%P_ST_BAG_ID%";
                mapperSettings.UI.Overlay.SceneryFormat = "PID=%PID%";
            }

            frmPaths = new frmPaths(mapperSettings);
            if (mapperSettings == null)
            {
                mapperSettings = new MapperSettings();
                frmPaths.ShowDialog();

                mapperSettings.View.Tiles                     =
                    mapperSettings.View.Roofs                 =
                        mapperSettings.View.Critters          =
                            mapperSettings.View.Items         =
                                mapperSettings.View.Scenery   =
                                    mapperSettings.View.Walls = true;

                mapperSettings.Performance.CacheResources = true;
                mapperSettings.Performance.FastRendering  = true;
            }

            menuViewTiles.Checked        = mapperSettings.View.Tiles;
            menuViewRoofs.Checked        = mapperSettings.View.Roofs;
            menuViewCritters.Checked     = mapperSettings.View.Critters;
            menuViewItems.Checked        = mapperSettings.View.Items;
            menuViewScenery.Checked      = mapperSettings.View.Scenery;
            menuViewSceneryWalls.Checked = mapperSettings.View.Walls;

            resourceLoader.RunWorkerAsync();
        }
Ejemplo n.º 3
0
 private void pathsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (frmPaths == null || frmPaths.IsDisposed) frmPaths = new frmPaths(mapperSettings);
     frmPaths.Show();
 }
Ejemplo n.º 4
0
        private void LoadResources()
        {
            SettingsManager.Init();
            mapperSettings = SettingsManager.LoadSettings();

            if (mapperSettings.UI.Overlay == null)
            {
                mapperSettings.UI.Overlay = new OverlaySettings();
                mapperSettings.UI.Overlay.CritterFormat = "PID=%PID% [%P_ScriptName%@%P_FuncName%]\nBag=%P_ST_BAG_ID%";
                mapperSettings.UI.Overlay.SceneryFormat = "PID=%PID%";
            }

            frmPaths = new frmPaths(mapperSettings);
            if (mapperSettings == null)
            {
                mapperSettings = new MapperSettings();
                frmPaths.ShowDialog();

                mapperSettings.View.Tiles =
                mapperSettings.View.Roofs =
                mapperSettings.View.Critters =
                mapperSettings.View.Items =
                mapperSettings.View.Scenery =
                mapperSettings.View.Walls = true;

                mapperSettings.Performance.CacheResources = true;
                mapperSettings.Performance.FastRendering = true;
            }

            menuViewTiles.Checked = mapperSettings.View.Tiles;
            menuViewRoofs.Checked = mapperSettings.View.Roofs;
            menuViewCritters.Checked = mapperSettings.View.Critters;
            menuViewItems.Checked = mapperSettings.View.Items;
            menuViewScenery.Checked = mapperSettings.View.Scenery;
            menuViewSceneryWalls.Checked = mapperSettings.View.Walls;

            resourceLoader.RunWorkerAsync();
        }