-
Notifications
You must be signed in to change notification settings - Fork 294
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
fix: actually I fixed everything that there was to fix on the minimap #6598
Conversation
if (dialog.getMouseListeners().length == 0) { | ||
dialog.addMouseListener(mouseListener); | ||
dialog.addMouseMotionListener(mouseMotionListener); | ||
dialog.addMouseWheelListener(mouseWheelListener); | ||
dialog.addComponentListener(componentListener); | ||
dialog.addComponentListener(componentListener); | ||
} |
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.
avoid initializing the same dialog twice.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6598 +/- ##
=========================================
Coverage 29.10% 29.10%
- Complexity 15279 15289 +10
=========================================
Files 2837 2837
Lines 279674 279701 +27
Branches 49268 49269 +1
=========================================
+ Hits 81402 81417 +15
- Misses 192815 192831 +16
+ Partials 5457 5453 -4 ☔ View full report in Codecov by Sentry. |
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.
Nice!
g.setColor(Color.white); | ||
g.drawString(sHeight, baseX + 5, baseY + 5); | ||
g.drawString(sHeight, baseX - fontWidth, baseY + fontHeight); // + (fontHeight / 2)); |
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.
Commented out code?
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.
what are you talking about? there is no comment.... (amended and force pushed, thanks)
610b6b2
to
379ef11
Compare
What it does?
Implements the same algorithm to draw the text on the coordinates that is used by the "drawUnit" when it wants to draw things like the sensor ping.
It also fixes a bunch of bugs related to the minimap not responding anymore. I moved a few functions around and things started to work, I won't complain.