예제 #1
0
        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}");
            }
        }
예제 #2
0
 public void SetPhoneOpened(bool value)
 {
     ModEntry.TogglePhone(value);
 }