1
0
mirror of https://github.com/soarqin/DSP_Mods_TO.git synced 2025-12-18 20:43:30 +08:00
This commit is contained in:
2024-03-22 02:53:22 +08:00
parent e8cb42643d
commit 13e9a200b5
7 changed files with 102 additions and 27 deletions

20
AutoPilot/README.md Normal file
View File

@@ -0,0 +1,20 @@
# AutoPilot
## What's this?
Auto pilot to a planet or star system.
This mod is a CruiseAssist extension.
Original mod: [AutoPilot](https://thunderstore.io/package/tanu/AutoPilot/)
It was discontinued, so I made a fork of it.
## CHANGE LOG
### 0.1.0
* Cleanup from disassmbly codes of AutoPilot 0.0.4.
* Optimization to codes.
* Add a simple localization implementation.
### Origianal AutoPilot Changelogs
Check [original mod](https://thunderstore.io/c/dyson-sphere-program/p/tanu/AutoPilot/) for details

View File

@@ -87,7 +87,7 @@ internal static class AutoPilotConfigUI
_labelStyle.fixedWidth = 240f;
GUILayout.Label(Strings.Get(17), _labelStyle);
GUILayout.FlexibleSpace();
SetValue(ref TempWarpMinRangeAu, GUILayout.TextArea(TempWarpMinRangeAu, _textFieldStyle), 1, 60, ref AutoPilotPlugin.Conf.WarpMinRangeAu);
SetValue(ref TempWarpMinRangeAu, GUILayout.TextField(TempWarpMinRangeAu, _textFieldStyle), 1, 60, ref AutoPilotPlugin.Conf.WarpMinRangeAu);
_labelStyle.fixedWidth = 20f;
GUILayout.Label("AU", _labelStyle);
GUILayout.EndHorizontal();
@@ -95,7 +95,7 @@ internal static class AutoPilotConfigUI
_labelStyle.fixedWidth = 240f;
GUILayout.Label(Strings.Get(18), _labelStyle);
GUILayout.FlexibleSpace();
SetValue(ref TempSpeedToWarp, GUILayout.TextArea(TempSpeedToWarp, _textFieldStyle), 0, 2000, ref AutoPilotPlugin.Conf.SpeedToWarp);
SetValue(ref TempSpeedToWarp, GUILayout.TextField(TempSpeedToWarp, _textFieldStyle), 0, 2000, ref AutoPilotPlugin.Conf.SpeedToWarp);
_labelStyle.fixedWidth = 20f;
GUILayout.Label("m/s", _labelStyle);
GUILayout.EndHorizontal();

View File

@@ -1,5 +1,4 @@
using System;
using CruiseAssist.Commons;
using HarmonyLib;
namespace AutoPilot.UI;
@@ -60,7 +59,7 @@ public static class Strings
"最小能量百分比 (0-100 默认20)",
"最大速度 (0-2000 默认2000)",
"启用曲速最小距离 (1-60 默认2)",
"航行速度达到此值时启动曲速 (0-2000 默认1200)",
"启动曲速的航行速度 (0-2000 默认1200)",
"即使本星系的行星也允许曲速",
// 20
"设置目标行星后立即开始导航",