Пример #1
0
    private void OnWindowToggleOff(TaskbarButton obj)
    {
        if (obj == friendsButton)
        {
            OnFriendsToggleOff?.Invoke();
        }
        else if (obj == chatButton)
        {
            OnChatToggleOff?.Invoke();
        }
        else if (obj == backpackButton)
        {
            OnBackpackToggleOff?.Invoke();
        }
        else if (obj == exploreButton)
        {
            OnExploreToggleOff?.Invoke();
        }
        else if (obj == goToGenesisButton)
        {
            OnGoToGenesisToggleOff?.Invoke();
        }
        else if (obj == moreButton)
        {
            moreMenu.ShowMoreMenu(false);
        }

        if (AllButtonsToggledOff())
        {
            chatButton.SetToggleState(false, useCallback: false);
            controller.worldChatWindowHud.SetVisibility(true);
        }
    }
    private void OnWindowToggleOff(TaskbarButton obj)
    {
        if (obj == friendsButton)
        {
            OnFriendsToggleOff?.Invoke();
        }
        else if (obj == chatButton)
        {
            OnChatToggleOff?.Invoke();
        }
        else if (obj == settingsButton)
        {
            OnSettingsToggleOff?.Invoke();
        }
        else if (obj == builderInWorldButton)
        {
            OnBuilderInWorldToggleOff?.Invoke();
        }
        else if (obj == exploreButton)
        {
            OnExploreToggleOff?.Invoke();
        }
        else if (obj == moreButton)
        {
            moreMenu.ShowMoreMenu(false);
        }
        else if (obj == questPanelButton)
        {
            OnQuestPanelToggled?.Invoke(false);
        }
        else
        {
            using (var iterator = activePortableExperienceItems.GetEnumerator())
            {
                while (iterator.MoveNext())
                {
                    if (iterator.Current.Value.mainButton == obj)
                    {
                        iterator.Current.Value.ShowContextMenu(false);
                        break;
                    }
                }
            }
        }

        if (AllButtonsToggledOff())
        {
            chatButton.SetToggleState(false, useCallback: false);
            controller.worldChatWindowHud.SetVisibility(true);
        }
    }
Пример #3
0
    private void OnWindowToggleOff(TaskbarButton obj)
    {
        if (obj == friendsButton)
        {
            OnFriendsToggleOff?.Invoke();
        }
        else if (obj == chatButton)
        {
            OnChatToggleOff?.Invoke();
        }

        if (AllButtonsToggledOff())
        {
            chatButton.SetToggleState(false, useCallback: false);
            controller.worldChatWindowHud.SetVisibility(true);
        }
    }