Browse Source

Set initial GUI position on the right

denikson 2 years ago
parent
commit
4d5886e1ca

+ 1 - 0
MultipleMaids/Plugin/MultipleMaids.Gui.cs

@@ -54,6 +54,7 @@ namespace CM3D2.MultipleMaids.Plugin
             {
                 if (isGuiInit || screenSize != new Vector2(Screen.width, Screen.height))
                 {
+                    //Debug.Log("[MM] Resetting window place");
                     isGuiInit = false;
                     screenSize = new Vector2(Screen.width, Screen.height);
 

+ 3 - 0
MultipleMaids/Plugin/MultipleMaids.Init.cs

@@ -1688,6 +1688,9 @@ namespace CM3D2.MultipleMaids.Plugin
             itemBArray = stringList14.ToArray();
 
             //rectWin.y = GetPix(65);
+
+            rectWin.x = Screen.width - 210;
+            rectWin.y = GetPix(65);
         }
     }
 }

+ 3 - 1
MultipleMaids/Util/Voice.cs

@@ -1,4 +1,6 @@
-namespace COM3D2.MultipleMaids.Util
+using System;
+
+namespace COM3D2.MultipleMaids.Util
 {
     internal interface IVoice
     {