Пример #1
0
        /// <summary>
        /// Load built-in console commands.
        /// </summary>
        public override void OnLoad()
        {
            IsOpen = false;

            Keybind.Add(this, consoleKey);

            ConsoleCommand.Add(new CommandClear());
            ConsoleCommand.Add(new CommandHelp());
        }
Пример #2
0
 public override void OnLoad()
 {
     Keybind.Add(this, consoleKey);
     Keybind.Add(this, consoleSizeKey);
     CreateConsoleUI();
     console.setVisibility(false);
     ConsoleCommand.Add(new CommandClear());
     ConsoleCommand.Add(new CommandHelp());
     ConsoleCommand.Add(new CommandLogAll());
 }
Пример #3
0
 public override void OnMenuLoad()
 {
     Keybind.Add(this, consoleKey);
     CreateConsoleUI();
     console.controller = new ConsoleController();
     ConsoleCommand.cc  = console.controller;
     console.setVisibility(false);
     console.viewContainer.transform.GetChild(4).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize();
     ConsoleCommand.Add(new CommandVersion());
     ConsoleCommand.Add(new CommandLogAll());
 }
Пример #4
0
 public override void OnLoad()
 {
     Keybind.Add(this, consoleKey);
     //Keybind.Add(this, consoleSizeKey);
     CreateConsoleUI();
     console.console   = new ConsoleController();
     ConsoleCommand.cc = console.console;
     console.setVisibility(false);
     UI.GetComponent <ConsoleView>().viewContainer.transform.GetChild(4).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize();
     ConsoleCommand.Add(new CommandClear());
     ConsoleCommand.Add(new CommandHelp());
     ConsoleCommand.Add(new CommandLogAll());
 }
Пример #5
0
        public override void OnMenuLoad()
        {
            CreateConsoleUI();
            console.controller = new ConsoleController();
            ConsoleCommand.cc  = console.controller;
            console.setVisibility(false);
            console.viewContainer.transform.GetChild(4).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize();

            console.setVisibility(MSCUnloader.consoleOpen);

            //ConsoleCommand.Add(new CommandVersion());
            ConsoleCommand.Add(new CommandLogAll());
            ConsoleCommand.Add(new ManifestCommand());
        }
Пример #6
0
 public override void OnMenuLoad()
 {
     try
     {
         CreateConsoleUI();
     }
     catch (System.Exception e)
     {
         ModUI.ShowMessage($"Fatal error:{System.Environment.NewLine}<color=orange>{e.Message}</color>{System.Environment.NewLine}Please install modloader correctly.", "Fatal Error");
     }
     console.controller = new ConsoleController();
     ConsoleCommand.cc  = console.controller;
     console.setVisibility(false);
     console.viewContainer.transform.GetChild(5).gameObject.GetComponent <ConsoleUIResizer>().LoadConsoleSize();
     ConsoleCommand.Add(new CommandVersion());
     ConsoleCommand.Add(new CommandLogAll());
     ConsoleCommand.Add(new ManifestCommand());
 }