Browse Source

增加切换exe窗口大小的功能

大爷 1 năm trước cách đây
mục cha
commit
ac4a1ccd11

+ 32 - 0
Unity/Assets/Scripts/Codes/Model/Client/ResolutionInfo.cs

@@ -0,0 +1,32 @@
+public class ResolutionInfo
+{
+    public string ShowName;
+    public int X;
+    public int Y;
+
+    public static ResolutionInfo[] ResolutionList;
+    static ResolutionInfo()
+    {
+        ResolutionList = new ResolutionInfo[]
+        {
+            new ResolutionInfo
+            {
+                ShowName = "4K",
+                X = 1125,
+                Y = 2000
+            },
+            new ResolutionInfo
+            {
+                ShowName = "2K",
+                X = 765,
+                Y = 1360,
+            },
+            new ResolutionInfo
+            {
+                ShowName = "1080p",
+                X = 540,
+                Y = 960,
+            },
+        };
+    }
+}

+ 11 - 0
Unity/Assets/Scripts/Codes/Model/Client/ResolutionInfo.cs.meta

@@ -0,0 +1,11 @@
+fileFormatVersion: 2
+guid: d51a4a44715064c449c38028eb2f187a
+MonoImporter:
+  externalObjects: {}
+  serializedVersion: 2
+  defaultReferences: []
+  executionOrder: 0
+  icon: {instanceID: 0}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: