Exemple #1
0
    void SetOverlaysVisibleImpl(bool state)
    {
        string screenName = FixActiveScreenName(ActiveScreenName);

        foreach (var overlayPair in m_Overlays)
        {
            GuiOverlay overlay = overlayPair.Value;
            if (overlay == null)
            {
                continue;
            }

            if (state == true)
            {
                overlay.ShowView(this);
                overlay.EnableView();
                overlay.SetActiveScreen(screenName);
            }
            else
            {
                overlay.SetActiveScreen(null);
                overlay.DisableView();
                overlay.HideView(this);
            }
        }
    }
Exemple #2
0
    void SetOverlaysEnabledImpl(bool state)
    {
        string screenName = FixActiveScreenName(ActiveScreenName);

        foreach (var overlayPair in m_Overlays)
        {
            GuiOverlay overlay = overlayPair.Value;
            if (overlay == null)
            {
                continue;
            }

            if (state == true && m_OverlaysCustomEnabled == true)
            {
                overlay.EnableView();
            }
            else
            {
                overlay.DisableView();
            }
            overlay.SetActiveScreen(screenName);
        }
    }