protected override void DidActivate(bool firstActivation, ActivationType activationType) { if (firstActivation) { BSMLParser.instance.Parse(BSMLUtilities.GetResourceContent(Assembly.GetExecutingAssembly(), "EnhancedSearchAndFilters.UI.Views.SearchResultsNavigationView.bsml"), this.gameObject, this); name = "SearchResultsNavigationController"; _loadingSpinner = UIUtilities.CreateLoadingSpinner(this.rectTransform); var handler = _lastSearchButton.gameObject.AddComponent <EnterExitEventHandler>(); handler.PointerEntered += () => _lastSearchButton.SetButtonText(RedoSearchButtonHighlightedText); handler.PointerExited += () => _lastSearchButton.SetButtonText(RedoSearchButtonDefaultText); _lastSearchText.color = new Color(1f, 1f, 1f, 0.3f); _songPreviewPlayer = Resources.FindObjectsOfTypeAll <SongPreviewPlayer>().First(); } else { _resultsText.text = PluginConfig.SearchKeyboard == SearchKeyboardType.RightScreen ? RightScreenKeyboardPlaceholderResultsText : DetachedKeyboardPlaceholderResultsText; _resultsText.fontSize = 6f; } AdjustElements(); _loadingSpinner.SetActive(false); _resultsText.gameObject.SetActive(PluginConfig.SearchKeyboard != SearchKeyboardType.Compact); _forceButton.gameObject.SetActive(false); _lastSearchButton.gameObject.SetActive(false); _lastSearchText.gameObject.SetActive(false); _resetKeyboardPosButton.gameObject.SetActive(PluginConfig.SearchKeyboard == SearchKeyboardType.Floating); SetHeaderActive(PluginConfig.SearchKeyboard != SearchKeyboardType.Compact); }