// Token: 0x06000DCE RID: 3534 RVA: 0x0005FC1C File Offset: 0x0005DE1C
 private void OnGUI()
 {
     this.ReleaseOldLock();
     if (this._popups.Count > 0)
     {
         IPopupDialog popupDialog = this._popups.Peek();
         this._lastLockDepth = popupDialog.Depth;
         GUI.depth           = (int)this._lastLockDepth;
         popupDialog.OnGUI();
         if (Event.current.type == EventType.Layout)
         {
             GuiLockController.EnableLock(this._lastLockDepth);
         }
     }
     GuiManager.DrawTooltip();
 }
 // Token: 0x06000DCF RID: 3535 RVA: 0x0005FC8C File Offset: 0x0005DE8C
 private void ReleaseOldLock()
 {
     if (Event.current.type == EventType.Layout)
     {
         if (this._popups.Count > 0)
         {
             if (this._lastLockDepth != this._popups.Peek().Depth)
             {
                 GuiLockController.ReleaseLock(this._lastLockDepth);
             }
         }
         else
         {
             GuiLockController.ReleaseLock(this._lastLockDepth);
             base.enabled = false;
         }
     }
 }
Beispiel #3
0
 // Token: 0x06000D34 RID: 3380 RVA: 0x0005B330 File Offset: 0x00059530
 private void Update()
 {
     if (this._screenResChangeDelay > 0f)
     {
         this._screenResChangeDelay -= Time.deltaTime;
         if (this._screenResChangeDelay <= 0f)
         {
             GuiLockController.ReleaseLock(GuiDepth.Popup);
         }
     }
     if (Input.GetMouseButtonUp(0) && this.graphicsChanged)
     {
         this.UpdateTextureQuality();
         this.UpdateVSyncCount();
         this.UpdateAntiAliasing();
         this.UpdatePostProcessing();
         this.graphicsChanged = false;
     }
 }
Beispiel #4
0
 // Token: 0x06000D33 RID: 3379 RVA: 0x0005B13C File Offset: 0x0005933C
 private void DrawScreenResChangePanel()
 {
     GUI.depth = 1;
     GUI.Label(new Rect(0f, 0f, this._rect.width, 56f), LocalizedStrings.ChangingScreenResolution, BlueStonez.tab_strip);
     GUI.BeginGroup(new Rect(16f, 55f, this._rect.width - 32f, this._rect.height - 56f - 54f), string.Empty, BlueStonez.window_standard_grey38);
     GUI.Label(new Rect(24f, 18f, 460f, 20f), LocalizedStrings.ChooseNewResolution + this._screenResText[this._newScreenResIndex] + " ?", BlueStonez.label_interparkbold_16pt_left);
     GUI.Label(new Rect(0f, 0f, this._rect.width - 32f, this._rect.height - 56f - 54f), ((int)this._screenResChangeDelay).ToString(), BlueStonez.label_interparkbold_48pt);
     GUI.EndGroup();
     if (GUITools.Button(new Rect(this._rect.width - 136f - 140f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.OkCaps), BlueStonez.button))
     {
         ScreenResolutionManager.SetResolution(this._newScreenResIndex, true);
         this._screenResChangeDelay = 0f;
         GuiLockController.ReleaseLock(GuiDepth.Popup);
     }
     if (GUITools.Button(new Rect(this._rect.width - 136f, this._rect.height - 40f, 120f, 32f), new GUIContent(LocalizedStrings.CancelCaps), BlueStonez.button))
     {
         this._screenResChangeDelay = 0f;
         GuiLockController.ReleaseLock(GuiDepth.Popup);
         if (this._isFullscreenBefore)
         {
             ScreenResolutionManager.IsFullScreen = true;
         }
     }
 }
 // Token: 0x0600147F RID: 5247 RVA: 0x000758A0 File Offset: 0x00073AA0
 private void OnGUI()
 {
     PanelManager.IsAnyPanelOpen = false;
     foreach (IPanelGui panelGui in this._allPanels.Values)
     {
         if (panelGui.IsEnabled)
         {
             PanelManager.IsAnyPanelOpen = true;
             break;
         }
     }
     if (Event.current.type == EventType.Layout)
     {
         if (PanelManager.IsAnyPanelOpen)
         {
             GuiLockController.EnableLock(GuiDepth.Panel);
         }
         else
         {
             GuiLockController.ReleaseLock(GuiDepth.Panel);
             base.enabled = false;
         }
         if (PanelManager._wasAnyPanelOpen != PanelManager.IsAnyPanelOpen)
         {
             if (PanelManager._wasAnyPanelOpen)
             {
                 AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.ClosePanel, 0UL, 1f, 1f);
             }
             else
             {
                 AutoMonoBehaviour <SfxManager> .Instance.Play2dAudioClip(GameAudio.OpenPanel, 0UL, 1f, 1f);
             }
             PanelManager._wasAnyPanelOpen = !PanelManager._wasAnyPanelOpen;
         }
     }
 }