static void Postfix(Panel_BreakDown __instance) { if (!__instance.IsEnabled() || InterfaceManager.ShouldImmediatelyExitOverlay() || InputManager.GetEscapePressed() || __instance.IsBreakingDown()) { return; } int framesInPanel = (int)AccessTools.Field(typeof(Panel_BreakDown), "m_FramesInPanel").GetValue(__instance); if (framesInPanel > 1 && Utils.IsMouseActive()) { float movement = Utils.GetMenuMovementHorizontal(true, true); if (movement < 0) { __instance.OnPrevTool(); } else if (movement > 0) { __instance.OnNextTool(); } else if (InputManager.GetRadialButton()) { __instance.OnBreakDown(); } } }
public static void Postfix(Panel_BreakDown __instance) { if (!__instance.IsEnabled() || __instance.IsBreakingDown() || Utils.IsMouseActive()) { return; } if (InputManager.GetInventoryExaminePressed()) { Panel_BreakDown_Enable.OnPickup(); } }