internal static bool MapPage_receiveLeftClick_Prefix(int x, int y, bool playSound) { if (ButtonArea.Contains(x, y)) { RSVWorldMap.Open(Game1.activeClickableMenu); return(false); } return(true); }
internal static void MapPage_draw_Postfix(ref MapPage __instance, SpriteBatch b) { Game1.drawDialogueBox(ButtonArea.X - 92 + 60, ButtonArea.Y - 16 - 80, 250 - 42, 232, false, true); b.Draw(RSVIcon, new Vector2(EventDetection.ButtonArea.X, EventDetection.ButtonArea.Y), null, Color.White, 0f, Vector2.Zero, 1f, SpriteEffects.None, 0.1f); Point mouseCoords = Game1.getMousePosition(true); if (ButtonArea.Contains(mouseCoords.X, mouseCoords.Y)) { IClickableMenu.drawHoverText(b, Helper.Translation.Get("RSV.MapIconName"), Game1.smallFont); } __instance.drawMouse(b); }