Example #1
0
        void Start()
        {
            Buffer     = new CommandLog(BufferSize);
            History    = new CommandHistory();
            Controller = Control.GetComponent <Controller>();

            Input       = true;
            Input_text  = false;
            count_tab   = 0;
            command_tab = true;
            Scroll      = false;
            Cursor      = false;

            SetupWindow();
            SetupInput();
            SetupLabels();
        }
Example #2
0
        void Start()
        {
            Buffer     = new CommandLog(BufferSize);
            History    = new CommandHistory();
            Controller = Control.GetComponent <Controller>();

            Input         = true;
            Input_text    = false;
            count_tab     = 0;
            actual_cursor = 0;

            SetupWindow();
            SetupInput();
            SetupLabels();

            panel.transform.SetParent(this.transform, false);
        }
        public void Awake()
        {
            Buffer       = new CommandLog(BufferSize);
            Shell        = new CommandShell();
            History      = new CommandHistory();
            Autocomplete = new CommandAutocomplete();

            command_text = "";

            Shell.RegisterCommands();

            if (IssuedError)
            {
                Log(TerminalLogType.Error, "Error: {0}", Shell.IssuedErrorMessage);
            }

            foreach (var command in Shell.Commands)
            {
                Autocomplete.Register(command.Key);
            }
        }