Example #1
0
        protected override void Awake()
        {
            base.Awake();

            _instantiatedColorSet = Instantiate(_colorSetAsset);

            // Main.
            _containerListener.AddDimensionsChangedListener(OnContainerRectTransformDimensionsChange);

            // Titlebar.
            _closeButton.onClick.AddListener(() => CloseButtonHandler(_closeButton));

            // Filter.
            _filterDropdown.AddFilterChangedListener(FilterUpdated);
            _filterDropdown.ColorSet = _instantiatedColorSet;

            // Search.
            _searchInputField.onValueChanged.AddListener(evt => SearchInputFieldUpdated(_searchInputField));

            // Fill log pool.
            FillPool();

            // Apply color set to main window.
            ApplyColorSet();

            // StackTrace window.
            _obeliskStackTrace          = Instantiate(_obeliskStackTracePrefab, transform.parent, false);
            _obeliskStackTrace.ColorSet = _instantiatedColorSet;
        }
Example #2
0
        public void Init(ObeliskConsole obeliskConsole, ObeliskColorSet colorSet)
        {
            _obeliskConsole = obeliskConsole;
            _colorSet       = colorSet;

            _stackTraceImage.color = _colorSet.IconColor;
            _button.onClick.AddListener(OnButtonClicked);
        }