-
Notifications
You must be signed in to change notification settings - Fork 398
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
TripleA-2.6.929 show Zoom percentage request #10693 #12082
TripleA-2.6.929 show Zoom percentage request #10693 #12082
Conversation
Signed-off-by: Patrik Fedič <[email protected]>
final Number value = (Number) model.getValue(); | ||
frame.getMapPanel().setScale(value.doubleValue() / 100); | ||
|
||
frame.getGame().getData().notifyMapZoomChanged(value.intValue()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT of setting the value directly on bottomBar
?
EG, something like:
frame.getBottomBar().setMapZoom(value);
I see this as advantageous for two reasons:
- less 'plumbing'
- no need to route a UI concern through
GameData
@FedaSkywalker thank you for the PR! Looks like you probably need to run Could you attach a screenshot of what this update looks like? Assuming that UX looks good, I reviewed the code diff and have a suggestion to simplify the submission. |
Signed-off-by: Patrik Fedič <[email protected]>
Hello @DanVanAtta, thx for your review. I tried to do it using |
Thanks for the updates @FedaSkywalker and for working on a PR to begin with! TBH I'm not sure if the zoom percentage is so salient that someone needs to see it all the time. Are we cluttering the UI? For sure zoom percentage is interesting information & is useful to know when opening a map or changing it. Though, I wonder if someone has been playing for an hour or three, whether they would still want to see zoom %. I wonder if there is maybe somewhere else on the UI that would be nicer? Perhaps the community on the forums could help give suggestions even. @FedaSkywalker As a compromise, WDYT if we put this update behind a flag? Simply add a setting that can be turned on to show this - and let's ask the community for feedback? Adding a game option setting is mostly straight forward. This might be better as an option in the view menu, eg: "show zoom percentage" |
Signed-off-by: Patrik Fedič <[email protected]>
Hello @DanVanAtta, you have got a good idea about setting map som visibity. So I've added "show map zoom" option to view menu as checkbox. Now user can enable or disable showing map zoom. Also I have improved the UI part of the zoom label. |
Signed-off-by: Patrik Fedič <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@FedaSkywalker It works, thanks for doing this! However on my PC it scrolls in 9s that is 99, 89 79, even when I reset it to 100%, I know so ungrateful 🙄 |
A zoom option was added onto a bottom bar. A new listener was added upon zooming as well.