Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zooming in/out breaks mod features #64

Open
jaydee0004 opened this issue Jan 19, 2021 · 4 comments
Open

Zooming in/out breaks mod features #64

jaydee0004 opened this issue Jan 19, 2021 · 4 comments

Comments

@jaydee0004
Copy link

Zooming and out basically makes everything out of place and the calendar/billboard is unclickable.

@bconn96
Copy link

bconn96 commented Feb 2, 2021

Changing the UI scale to match the Zoom fixes the issue.

@JoaoPedroPR
Copy link
Contributor

JoaoPedroPR commented Feb 22, 2021

It is still a bug.
On the "ShowCalendarAndBillboardOnGameMenuButton":
private void ActivateBillboard() { if (Game1.activeClickableMenu is GameMenu && (Game1.activeClickableMenu as GameMenu).currentTab == 0 && _showBillboardButton.containsPoint(Game1.getMouseX(), Game1.getMouseY()) && _heldItem == null) ...

The _showBillboardButton.containsPoint(Game1.getMouseX(), Game1.getMouseY()) returns false if on a different scale than 1 between UI size and Zoom.

@JoaoPedroPR
Copy link
Contributor

Managed to fix by changing Game1.getMouseX() to Game1.getMousePosition(true).X.
The fix is here: #72
I only fixed the CalendarAndBillboard but I suggest doing the same across the mod in general to support UI Scaling.

@Annosz
Copy link
Collaborator

Annosz commented Mar 2, 2021

It also has a general fix in #61 in which the UI scaling works for every mod option that has been added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants