Example #1
0
        public DebugManager(string version)
        {
            frmShell Debug = new frmShell(version, true);
            Debug.Show();
            Debug.Text = "Debug";
            var csl = Debug.GetConsole();
            csl.ForeColor = Color.Orange;
            csl.ReadOnly = true;
            csl.WordWrap = true;

            Debug.GetConsole().RedirectConsole(Debug);
        }
Example #2
0
        public DebugManager(string version)
        {
            frmShell Debug = new frmShell(version, true);

            Debug.Show();
            Debug.Text = "Debug";
            var csl = Debug.GetConsole();

            csl.ForeColor = Color.Orange;
            csl.ReadOnly  = true;
            csl.WordWrap  = true;

            Debug.GetConsole().RedirectConsole(Debug);
        }
Example #3
0
 public void InitHost(bool Shell, string version, WorldMap worldmap, PictureBox pctWorldMap)
 {
     Scripting.Host.ScriptGlobal.Init(Scripting.Host.ScriptHost, worldmap, pctWorldMap);
     Scripting.Host.ScriptHost.resources_loaded();
     if (Shell)
     {
         frmShell shell = new frmShell(version, false);
         Scripting.Host.ScriptHost.RegisterConsole(shell.GetConsole());
         shell.Show();
     }
 }
Example #4
0
 public void InitHost(bool Shell, string version, WorldMap worldmap, PictureBox pctWorldMap)
 {
     Scripting.Host.ScriptGlobal.Init(Scripting.Host.ScriptHost, worldmap, pctWorldMap);
     Scripting.Host.ScriptHost.resources_loaded();
     if (Shell)
     {
         frmShell shell = new frmShell(version, false);
         Scripting.Host.ScriptHost.RegisterConsole(shell.GetConsole());
         shell.Show();
     }
 }