Browse Source

Remove scene limitation

Limits activation only on scene 3 (main menu) as if activating PMI on
the title screen is any more useful.
habeebweeb 4 years ago
parent
commit
02934e9892
1 changed files with 3 additions and 3 deletions
  1. 3 3
      COM3D2.PropMyItem.Plugin/PropMyItem.cs

+ 3 - 3
COM3D2.PropMyItem.Plugin/PropMyItem.cs

@@ -1,4 +1,4 @@
-using System;
+using System;
 using System.Collections.Generic;
 using System.IO;
 using System.Text.RegularExpressions;
@@ -208,7 +208,7 @@ namespace COM3D2.PropMyItem.Plugin
                         this.LoadMenuFiles(this._isForcedInit);
                         this._isForcedInit = false;
                     }
-                    if (this._isVisible && this._windowRect.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)) && this._sceneLevel != 3)
+                    if (this._isVisible && this._windowRect.Contains(new Vector2(Input.mousePosition.x, (float)Screen.height - Input.mousePosition.y)))
                     {
                         GameMain.Instance.MainCamera.SetControl(false);
                         if (Event.current.type != EventType.KeyDown && Event.current.type != EventType.KeyUp)
@@ -230,7 +230,7 @@ namespace COM3D2.PropMyItem.Plugin
         // Token: 0x0600002F RID: 47 RVA: 0x00003A88 File Offset: 0x00001C88
         public void OnGUI()
         {
-            if (this._sceneLevel == 3 || !this._isVisible)
+            if (!this._isVisible)
             {
                 return;
             }