mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-08-05 19:30:21 +08:00
fix(UXAssist): guard non-UI input updates in menu demo
This commit is contained in:
@@ -196,6 +196,7 @@ public static class FactoryPatch
|
|||||||
|
|
||||||
public static void OnInputUpdate()
|
public static void OnInputUpdate()
|
||||||
{
|
{
|
||||||
|
if (DSPGame.IsMenuDemo) return;
|
||||||
if (_doNotRenderEntitiesKey.keyValue)
|
if (_doNotRenderEntitiesKey.keyValue)
|
||||||
DoNotRenderEntitiesEnabled.Value = !DoNotRenderEntitiesEnabled.Value;
|
DoNotRenderEntitiesEnabled.Value = !DoNotRenderEntitiesEnabled.Value;
|
||||||
if (CutConveyorBeltEnabled.Value && _cutConveyorBeltKey.keyValue)
|
if (CutConveyorBeltEnabled.Value && _cutConveyorBeltKey.keyValue)
|
||||||
|
|||||||
@@ -97,6 +97,7 @@ public static class LogisticsPatch
|
|||||||
|
|
||||||
public static void OnInputUpdate()
|
public static void OnInputUpdate()
|
||||||
{
|
{
|
||||||
|
if (DSPGame.IsMenuDemo) return;
|
||||||
if (VFInput.onGUI && LogisticsCapacityTweaksEnabled.Value)
|
if (VFInput.onGUI && LogisticsCapacityTweaksEnabled.Value)
|
||||||
{
|
{
|
||||||
LogisticsCapacityTweaks.UpdateInput();
|
LogisticsCapacityTweaks.UpdateInput();
|
||||||
|
|||||||
Reference in New Issue
Block a user