Skip to content

Commit

Permalink
VillageHeadOfTaiwu-1.1.9
Browse files Browse the repository at this point in the history
- 优化启动时遮挡的panel的大小
  • Loading branch information
sth4nothing committed Nov 25, 2018
1 parent fe5ed87 commit d7e2d35
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion VillageHeadOfTaiwu/Info.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 2 additions & 0 deletions VillageHeadOfTaiwu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
**村民资源采集任务管理**

## 更新日志
### 1.1.9
- 优化启动时遮挡的panel的大小
### 1.1.8
- 修正地图大小判断错误
### 1.1.7
Expand Down
2 changes: 1 addition & 1 deletion VillageHeadOfTaiwu/VillageHeadOfTaiwu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ private void BlockGameUI(bool open)
var panel = new GameObject("panel", typeof(Image));
panel.transform.SetParent(canvas.transform);
panel.GetComponent<Image>().color = new Color(0f, 0f, 0f, 0.6f);
panel.GetComponent<RectTransform>().anchorMin = new Vector2(windowRect.x / designWidth, 0.22f);
panel.GetComponent<RectTransform>().anchorMin = new Vector2(1f - 25f / designWidth, 0.95f - 25f / designHeight);
panel.GetComponent<RectTransform>().anchorMax = new Vector2(1, 0.95f);
panel.GetComponent<RectTransform>().offsetMin = Vector2.zero;
panel.GetComponent<RectTransform>().offsetMax = Vector2.zero;
Expand Down

0 comments on commit d7e2d35

Please sign in to comment.