Example #1
0
		private void TryInitialize()
		{
			if(!m_Initialized)
			{
				m_Initialized = true;
				LocalizationManager localization = new LocalizationManager();
				localization.Load("en-us", LocalizationCSV.text);

				Styles = new ConsoleStyles();
				Console = new ConsoleInstance(localization, new UnityPersistence());
				if(InitializeDefaults)
				{
					Console.SetupDefault();
				}
				UserInput = new ConsoleInput(this);
				
				Details = new ConsoleDetailsPanel(this);
				Messages = new ConsoleMessagesPanel(this);
				Hints = new ConsoleHintPanel(this);
				Input = new ConsoleInputPanel(this);
				Issues = new ConsoleIssuePanel(this);

				Console.AddCommand(new ClearCommand(this));
			}
		}
Example #2
0
        public void Render(Rect rect, ConsoleStyles style)
        {
            GUIStyle textStyle = style[Message.Type];

            GUI.Label(rect, m_Content, textStyle);
        }