From d7e2d357f0e04b7747e2f95c4fe2f38a3b0d630d Mon Sep 17 00:00:00 2001 From: sth4nothing <892223922@qq.com> Date: Sun, 25 Nov 2018 19:31:34 +0800 Subject: [PATCH] =?UTF-8?q?VillageHeadOfTaiwu-1.1.9=20-=20=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=90=AF=E5=8A=A8=E6=97=B6=E9=81=AE=E6=8C=A1=E7=9A=84?= =?UTF-8?q?panel=E7=9A=84=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- VillageHeadOfTaiwu/Info.json | 2 +- VillageHeadOfTaiwu/README.md | 2 ++ VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/VillageHeadOfTaiwu/Info.json b/VillageHeadOfTaiwu/Info.json index d43e224..860bb1d 100644 --- a/VillageHeadOfTaiwu/Info.json +++ b/VillageHeadOfTaiwu/Info.json @@ -2,7 +2,7 @@ "Id": "VillageHeadOfTaiwu", "DisplayName": "太吾村支书", "Author": "sth4nothing", - "Version": "1.1.8", + "Version": "1.1.9", "AssemblyName": "VillageHeadOfTaiwu.dll", "EntryMethod": "Sth4nothing.VillageHeadOfTaiwu.Main.Load" } \ No newline at end of file diff --git a/VillageHeadOfTaiwu/README.md b/VillageHeadOfTaiwu/README.md index 007379b..914ade8 100644 --- a/VillageHeadOfTaiwu/README.md +++ b/VillageHeadOfTaiwu/README.md @@ -3,6 +3,8 @@ **村民资源采集任务管理** ## 更新日志 +### 1.1.9 +- 优化启动时遮挡的panel的大小 ### 1.1.8 - 修正地图大小判断错误 ### 1.1.7 diff --git a/VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs b/VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs index f25f3e4..938f033 100644 --- a/VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs +++ b/VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs @@ -344,7 +344,7 @@ private void BlockGameUI(bool open) var panel = new GameObject("panel", typeof(Image)); panel.transform.SetParent(canvas.transform); panel.GetComponent().color = new Color(0f, 0f, 0f, 0.6f); - panel.GetComponent().anchorMin = new Vector2(windowRect.x / designWidth, 0.22f); + panel.GetComponent().anchorMin = new Vector2(1f - 25f / designWidth, 0.95f - 25f / designHeight); panel.GetComponent().anchorMax = new Vector2(1, 0.95f); panel.GetComponent().offsetMin = Vector2.zero; panel.GetComponent().offsetMax = Vector2.zero;