Exemplo n.º 1
0
 public override void OnMenuLoad()
 {
     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());
 }
Exemplo n.º 2
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());
        }
Exemplo n.º 3
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());
 }
Exemplo n.º 4
0
 /// <summary>
 /// Adds a console command.
 /// </summary>
 /// <param name="cmd">The instance of the command to add.</param>
 public static void Add(ConsoleCommand cmd)
 {
     Commands.Add(cmd);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Adds a console command.
 /// </summary>
 /// <param name="cmd">The instance of the command to add.</param>
 public static void Add(ConsoleCommand cmd)
 {
     cc.registerCommand(cmd.Name, cmd.Run, cmd.Help);
 }