Skip to content

Commit

Permalink
Merge pull request #579 from dlamkins/fix/corner-icon-highlight
Browse files Browse the repository at this point in the history
Make "MouseInHouse" only true if over the real icons to preserve the consistency.
  • Loading branch information
dlamkins authored Jan 14, 2022
2 parents 1859b7f + 8fe4380 commit b345ed9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Blish HUD/Controls/CornerIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static CornerIcon() {

GameService.Input.Mouse.MouseMoved += (sender, e) => {
var scaledMousePos = Input.Mouse.State.Position.ScaleToUi();
if (scaledMousePos.Y < ICON_SIZE && scaledMousePos.X < ICON_SIZE * (ICON_POSITION + CornerIcons.Count - 1) + LeftOffset) {
if (scaledMousePos.Y < ICON_SIZE && scaledMousePos.X < ICON_SIZE * ICON_POSITION + LeftOffset) {
foreach (var cornerIcon in CornerIcons) {
cornerIcon.MouseInHouse = true;
}
Expand Down

0 comments on commit b345ed9

Please sign in to comment.