mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 22:30:21 +08:00
### 提交目的:
为玩家添加新的自动导航选项并集成新版导航算法。 ### 修改内容: - **新增** 新的导航算法选项及相关功能: - 支持启用/禁用新版导航算法。 - 自动导航选项支持到达目标或输入时自动暂停。 - 添加曲速启用选项、最低能量限制及使用距离的设置。 - 添加自动加速选项及其最低能量限制。 - 黑雾巢穴和火种的跟踪距离参数支持自定义。 - **扩展** `DistanceMapper` 类,增加了对巢穴及火种跟踪距离映射的支持。 - **更新** 玩家界面,以支持导航算法相关的多项新配置: - 在 UI 中增加多个与新版导航算法相关的开关、滑块和提示文本。 - **调整** 自动导航逻辑,新增多项参数以提升日志提示和控制细粒度。 ### 一般性修改: - 优化代码逻辑,分类整理导航功能和方法。 - 增加部分注释以提高代码可读性。 - **重构** 部分导航流程代码,减少重复实现,提高可维护性。
This commit is contained in:
@@ -233,6 +233,7 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
|
||||
DysonSpherePatch.AutoConstructMultiplier = Config.Bind("DysonSphere", "AutoConstructMultiplier", 1, "Dyson Sphere auto-construct speed multiplier");
|
||||
UIPatch.PlanetVeinUtilizationEnabled = Config.Bind("UI", "PlanetVeinUtilization", false,
|
||||
"Planet vein utilization");
|
||||
PlayerPatch.AutoNavigationG.Awake(this.Config);
|
||||
|
||||
I18N.Init();
|
||||
I18N.Add("UXAssist Config", "UXAssist Config", "UX助手设置");
|
||||
@@ -287,4 +288,4 @@ public class UXAssist : BaseUnityPlugin, IModCanSave
|
||||
|
||||
LogisticsPatch.OnUpdate();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user