// Token: 0x06003515 RID: 13589 RVA: 0x0015F88F File Offset: 0x0015DC8F
 private static void onRegionUpdated(byte old_x, byte old_y, byte new_x, byte new_y)
 {
     if (!EditorLevelVisibilityUI.active)
     {
         return;
     }
     EditorLevelVisibilityUI.update((int)new_x, (int)new_y);
 }
 // Token: 0x0600350A RID: 13578 RVA: 0x0015F784 File Offset: 0x0015DB84
 public static void open()
 {
     if (EditorLevelVisibilityUI.active)
     {
         return;
     }
     EditorLevelVisibilityUI.active = true;
     EditorLevelVisibilityUI.update((int)Editor.editor.area.region_x, (int)Editor.editor.area.region_y);
     EditorUI.message(EEditorMessage.VISIBILITY);
     EditorLevelVisibilityUI.container.lerpPositionScale(0f, 0f, ESleekLerp.EXPONENTIAL, 20f);
 }
示例#3
0
 private void Update()
 {
     if (EditorUI.window == null)
     {
         return;
     }
     if (EditorLevelVisibilityUI.active)
     {
         EditorLevelVisibilityUI.update();
     }
     if (Input.GetKeyDown(27))
     {
         if (EditorPauseUI.active)
         {
             EditorPauseUI.close();
         }
         else
         {
             EditorPauseUI.open();
         }
     }
     if (EditorUI.window != null)
     {
         if (Input.GetKeyDown(ControlsSettings.screenshot))
         {
             Provider.takeScreenshot();
         }
         if (Input.GetKeyDown(ControlsSettings.hud))
         {
             DevkitWindowManager.isActive            = false;
             EditorUI.window.isEnabled               = !EditorUI.window.isEnabled;
             EditorUI.window.drawCursorWhileDisabled = false;
         }
         if (Input.GetKeyDown(ControlsSettings.terminal))
         {
             DevkitWindowManager.isActive            = !DevkitWindowManager.isActive;
             EditorUI.window.isEnabled               = !DevkitWindowManager.isActive;
             EditorUI.window.drawCursorWhileDisabled = DevkitWindowManager.isActive;
         }
     }
     if (Input.GetKeyDown(ControlsSettings.refreshAssets))
     {
         Assets.refresh();
     }
     EditorUI.window.showCursor = !EditorInteract.isFlying;
     EditorUI.window.updateDebug();
     if (EditorUI.isMessaged)
     {
         if (Time.realtimeSinceStartup - EditorUI.lastMessage > EditorUI.MESSAGE_TIME)
         {
             EditorUI.isMessaged = false;
             if (!EditorUI.isHinted)
             {
                 EditorUI.messageBox.isVisible = false;
             }
         }
     }
     else if (EditorUI.isHinted)
     {
         if (!EditorUI.lastHinted)
         {
             EditorUI.isHinted             = false;
             EditorUI.messageBox.isVisible = false;
         }
         EditorUI.lastHinted = false;
     }
 }