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); }
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); }
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; }
private void Awake() { m_debugSettings = DebugSettings.GetDebugSettings(); m_loggerEntries = new Queue <string>(); ConsoleLogger.logMessageReceived += AddEntryToLogger; }
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; }