private static void Input_ButtonPressed(object sender, StardewModdingAPI.Events.ButtonPressedEventArgs e) { if (!ModEntry.appRunning) { return; } if (e.Button == SButton.MouseLeft) { if (!ModEntry.phoneRect.Contains(Game1.getMousePosition())) { Helper.Input.Suppress(SButton.MouseLeft); ModEntry.TogglePhone(); return; } lastMousePositionY = Game1.getMouseY(); Monitor.Log($"y {lastMousePositionY}"); } }
public void SetPhoneOpened(bool value) { ModEntry.TogglePhone(value); }