mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-03-22 10:13:26 +08:00
UXAssist: fix auto cruise
This commit is contained in:
@@ -363,6 +363,7 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
|||||||
/* Update target astro if changed */
|
/* Update target astro if changed */
|
||||||
_speedUp = false;
|
_speedUp = false;
|
||||||
var player = controller.player;
|
var player = controller.player;
|
||||||
|
if (player.mecha.thrusterLevel < 2) return;
|
||||||
var navi = player.navigation;
|
var navi = player.navigation;
|
||||||
if (navi.indicatorAstroId != _indicatorAstroId)
|
if (navi.indicatorAstroId != _indicatorAstroId)
|
||||||
{
|
{
|
||||||
@@ -552,10 +553,7 @@ public class PlayerPatch : PatchImpl<PlayerPatch>
|
|||||||
[HarmonyPatch(typeof(UISailPanel), nameof(UISailPanel._OnOpen))]
|
[HarmonyPatch(typeof(UISailPanel), nameof(UISailPanel._OnOpen))]
|
||||||
public static void OnOpen_Prefix()
|
public static void OnOpen_Prefix()
|
||||||
{
|
{
|
||||||
if (_aimingEnabled)
|
UIRoot.instance.uiGame.disableLockCursor = true;
|
||||||
{
|
|
||||||
UIRoot.instance.uiGame.disableLockCursor = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user