Example #1
0
        protected override bool DoHide(MenuScreen <PauseMenu> next)
        {
            GuiSelectionHandler component = base.Owner.GetComponent <GuiSelectionHandler>();

            if (component != null)
            {
                component.enabled = true;
            }
            base.Owner.mapWindow = null;
            return(true);
        }
Example #2
0
 protected override bool DoShow(MenuScreen <PauseMenu> previous)
 {
     if (base.Owner._mapWindow.CanShow(base.Owner.currEnt))
     {
         MapWindow pooledWindow = OverlayWindow.GetPooledWindow <MapWindow>(base.Owner._mapWindow);
         pooledWindow.Show(base.Owner.currEnt, null, new EntityOverlayWindow.OnDoneFunc(this.ClickedBack), null);
         GuiSelectionHandler component = base.Owner.GetComponent <GuiSelectionHandler>();
         if (component != null)
         {
             component.enabled = false;
         }
         base.Owner.mapWindow = pooledWindow;
     }
     else
     {
         Debug.LogWarning("No map for " + Utility.GetCurrentSceneName());
         base.SwitchToBack();
     }
     return(false);
 }