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;