From a9af7322379563d2c8b2071a075f8e20e3524c69 Mon Sep 17 00:00:00 2001 From: Soar Qin Date: Mon, 18 Dec 2023 15:06:11 +0800 Subject: [PATCH] Dustbin v1.3.2 --- Dustbin/Dustbin.csproj | 2 +- Dustbin/README.md | 7 +++++++ Dustbin/StoragePatch.cs | 2 +- Dustbin/package/manifest.json | 2 +- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Dustbin/Dustbin.csproj b/Dustbin/Dustbin.csproj index 4334ff9..51ff6ee 100644 --- a/Dustbin/Dustbin.csproj +++ b/Dustbin/Dustbin.csproj @@ -5,7 +5,7 @@ net472 org.soardev.dustbin DSP MOD - Dustbin - 1.3.1 + 1.3.2 true latest Dustbin diff --git a/Dustbin/README.md b/Dustbin/README.md index 7baffef..ae8d21b 100644 --- a/Dustbin/README.md +++ b/Dustbin/README.md @@ -4,6 +4,9 @@ #### 储物仓和储液罐可以转变为垃圾桶(销毁送进的物品) ## Changelog +* 1.3.2 + + Fix a display issue that the dustbin checkbox is overlapped with the filter button in storage UI. + * 1.3.1 + Support for game version 0.10.28.20759 @@ -35,8 +38,12 @@ + You can get item ID list [here](https://dsp-wiki.com/Modding:Items_IDs). ## 更新日志 +* 1.3.2 + + 修正了储物仓UI中的垃圾桶勾选框与筛选按钮重叠的显示问题 + * 1.3.1 + 支持游戏版本 0.10.28.20759 + * 1.3.0 + 添加了一个传送带信号(可以在信号选择面板的第一个页签中找到)作为垃圾桶,这是目前销毁物品最简单的方法 + 重写了储液罐的垃圾桶实现,以提高性能并解决已知的bug diff --git a/Dustbin/StoragePatch.cs b/Dustbin/StoragePatch.cs index 3afd50d..ad5aa48 100644 --- a/Dustbin/StoragePatch.cs +++ b/Dustbin/StoragePatch.cs @@ -135,7 +135,7 @@ public static class StoragePatch _storageDustbinCheckBox.Checked = storagePool[storageId].IsDustbin; if (__instance.transform is RectTransform rectTrans) { - _storageDustbinCheckBox.rectTrans.anchoredPosition3D = new Vector3(50, 58 - rectTrans.sizeDelta.y, 0); + _storageDustbinCheckBox.rectTrans.anchoredPosition3D = new Vector3(190, 57 - rectTrans.sizeDelta.y, 0); } } diff --git a/Dustbin/package/manifest.json b/Dustbin/package/manifest.json index 1a481e7..503d609 100644 --- a/Dustbin/package/manifest.json +++ b/Dustbin/package/manifest.json @@ -1,6 +1,6 @@ { "name": "Dustbin", - "version_number": "1.3.1", + "version_number": "1.3.2", "website_url": "https://github.com/soarqin/DSP_Mods/tree/master/Dustbin", "description": "Can turn Storages and Tanks into Dustbin(Destroy incoming items) / 储物仓和储液罐可以转变为垃圾桶(销毁送进的物品)", "dependencies": [