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

Minimap updates #4482

Merged
merged 1 commit into from
Jun 7, 2023
Merged

Minimap updates #4482

merged 1 commit into from
Jun 7, 2023

Conversation

SJuliez
Copy link
Member

@SJuliez SJuliez commented Jun 4, 2023

  • makes it possible again to show the minimap in the board editor
  • makes specific hex borders on the minimap thicker on high zoom (big minimap) to improve visibility (e.g. deployment borders)
  • makes the minimap repaint continuously when the board is dragged in the main boardview window to show updates to the visible section (this does not do a full minimap redraw, only blits the image again and draws the visible section rectangle, so should be very fast)
  • removes the paint() and update() overrides from the minimap in favor of paintComponent which should be the method to override. This seems to remove a slight lag when starting a drag in the main boardview window in deployment although I couldn't find out why this lagged except that it came from drawing the deployment borders in the minimap.
  • removes a few synchronized as the minimap is only accessed from the EDT.

@HammerGS HammerGS merged commit 6575e2a into MegaMek:master Jun 7, 2023
HammerGS added a commit that referenced this pull request Jun 7, 2023
+ Fix #4449: Delete PilotToolTip cache on client start and when portrait
is set
+ Fix #4467: Add client setting for Max Range to Draw Sensor / Visual
Rings
@SJuliez SJuliez deleted the Draw_Lag branch June 28, 2023 15:48
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

Successfully merging this pull request may close these issues.

3 participants