diff --git a/UXAssist/CHANGELOG.md b/UXAssist/CHANGELOG.md index 5023d9d..38cde7c 100644 --- a/UXAssist/CHANGELOG.md +++ b/UXAssist/CHANGELOG.md @@ -3,6 +3,10 @@ ## Changlog +* 1.4.4 + * `Remember window position and size on last exit`: Fix compatiblity for game patch 0.10.33 + * `Real-time logistic stations info panel`: Try to fix a display issue. + * Patch [CommonAPI](https://thunderstore.io/c/dyson-sphere-program/p/CommonAPI/CommonAPI/) temporarily to fix a known issue that shortcut key settings are not saved to config, while its [PR](https://github.com/limoka/CommonAPI/pull/14) is not merged yet. * 1.4.3 * `Build Tesla Tower and Wireless Power Tower alternately`: * Fix wrong implementation for latest game patch. @@ -346,6 +350,10 @@ ## 更新日志 +* 1.4.4 + * `记住上次退出时的窗口位置和大小`:修复对游戏补丁0.10.33的兼容性 + * `物流站实时信息面板`:尝试修复一个显示问题 + * 对[CommonAPI](https://thunderstore.io/c/dyson-sphere-program/p/CommonAPI/CommonAPI/)临时打补丁,修复快捷键设置未能保存到配置文件的已知问题(其[PR](https://github.com/limoka/CommonAPI/pull/14)仍未合并) * 1.4.3 * `交替建造电力感应塔和无线输电塔`: * 修复了在最新游戏补丁中的错误实现 diff --git a/UXAssist/UXAssist.cs b/UXAssist/UXAssist.cs index d1cda83..e2cc379 100644 --- a/UXAssist/UXAssist.cs +++ b/UXAssist/UXAssist.cs @@ -56,6 +56,7 @@ public class UXAssist : BaseUnityPlugin, IModCanSave UXAssist() { ModsCompat.PlanetVeinUtilization.Run(_harmony); + ModsCompat.CommonAPIWrapper.Run(_harmony); } private void Awake() @@ -217,7 +218,8 @@ public class UXAssist : BaseUnityPlugin, IModCanSave t => string.Equals(t.Namespace, "UXAssist.Patches", StringComparison.Ordinal) || string.Equals(t.Namespace, "UXAssist.Functions", StringComparison.Ordinal)); _patches?.Do(type => type.GetMethod("Init")?.Invoke(null, null)); _compats = Util.GetTypesInNamespace(Assembly.GetExecutingAssembly(), "UXAssist.ModsCompat"); - _compats?.Do(type => type.GetMethod("Init")?.Invoke(null, null)); + object[] parameters = [_harmony]; + _compats?.Do(type => type.GetMethod("Init")?.Invoke(null, parameters)); I18N.Apply(); } diff --git a/UXAssist/UXAssist.csproj b/UXAssist/UXAssist.csproj index 9c28014..d4dc40d 100644 --- a/UXAssist/UXAssist.csproj +++ b/UXAssist/UXAssist.csproj @@ -4,7 +4,7 @@ net472 org.soardev.uxassist DSP MOD - UXAssist - 1.4.3 + 1.4.4 true latest UXAssist @@ -17,7 +17,7 @@ - + diff --git a/UXAssist/package/manifest.json b/UXAssist/package/manifest.json index 8e02612..2872995 100644 --- a/UXAssist/package/manifest.json +++ b/UXAssist/package/manifest.json @@ -1,6 +1,6 @@ { "name": "UXAssist", - "version_number": "1.4.3", + "version_number": "1.4.4", "website_url": "https://github.com/soarqin/DSP_Mods/tree/master/UXAssist", "description": "Some functions and patches for better user experience / 一些提升用户体验的功能和补丁", "dependencies": [