Beispiel #1
0
 private void UpdateViewFromSettings()
 {
     m_debugSettings                = DebugSettings.GetDebugSettings();
     m_content.sizeDelta            = m_debugSettings.ConsoleSize;
     m_content.anchoredPosition     = m_debugSettings.ConsolePosition;
     m_consoleLogTextField.fontSize = m_debugSettings.FontSize;
     m_gameLoggerTextField.fontSize = m_debugSettings.FontSize;
 }
        private void Awake()
        {
            m_debugSettings = DebugSettings.GetDebugSettings();
            m_button        = GetComponent <Button>();
            m_button.onClick.AddListener(ChangeSize);

            m_currentSizeText.text = m_debugSettings.FontSize.ToString(CultureInfo.InvariantCulture);
        }
Beispiel #3
0
 private static void Initialize()
 {
     if (s_instance == null)
     {
         s_instance = new ConsoleLogger(DebugSettings.GetDebugSettings());
         Application.logMessageReceived += AdaptLogCallback;
         Application.quitting           += OnQuit;
     }
 }
        public static void OpenSaveFolder()
        {
            var settings = DebugSettings.GetDebugSettings();
            ProcessStartInfo startInformation = new ProcessStartInfo();

            if (!Directory.Exists(settings.FolderPath))
            {
                Directory.CreateDirectory(settings.FolderPath);
            }

            startInformation.FileName = settings.FolderPath;
            Process.Start(startInformation);
        }
Beispiel #5
0
        public void InitializeConsoleView()
        {
            InputSystem.EnableDevice(Keyboard.current);

            m_formattedMessagesQueue = new Queue <string>();
            m_logTextField.text      = "";
            m_debugSettings          = DebugSettings.GetDebugSettings();
            m_cheatConsole           = new CheatConsole(m_debugSettings, this);
            m_consoleInputField.onSubmit.AddListener(m_cheatConsole.HandleLogInputCommand);

            CommandRegistry.RegisterContainer(new ConsoleHelperCommandsContainer(m_cheatConsole, m_debuggerView));
            SetupButtons();
        }
 private void Awake()
 {
     m_debugSettings  = DebugSettings.GetDebugSettings();
     serializedObject = new SerializedObject(m_debugSettings);
 }
 private void Awake()
 {
     m_debugSettings = DebugSettings.GetDebugSettings();
     m_moveTarget.anchoredPosition = m_debugSettings.ConsolePosition;
 }
Beispiel #8
0
 private void Awake()
 {
     m_debugSettings = DebugSettings.GetDebugSettings();
     m_loggerEntries = new Queue <string>();
     ConsoleLogger.logMessageReceived += AddEntryToLogger;
 }
Beispiel #9
0
 public void InitializeTab()
 {
     m_settings = DebugSettings.GetDebugSettings();
     GetComponent <Button>().onClick.AddListener(() => m_debuggerView.FocusTab(this));
 }
 private void Awake()
 {
     m_debugSettings            = DebugSettings.GetDebugSettings();
     m_consoleContent.sizeDelta = m_debugSettings.ConsoleSize;
 }