diff --git a/CHANGELOG.md b/CHANGELOG.md index 676b4d5..c091ea4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,9 +2,13 @@ All notable changes to this project will be documented in this file. -## [2.9.8] - 2021-06-02 - Buff expiration alert +## [2.9.8] - 2021-06-03 - Buff tool tips -- Improved player pointer caching for performance +- Now when you mouse over the buff icon you'll see the name +- The buff name should appear in your local language +- You can now vertically adjust the position of the buff icons +- You can set a positive or negative value to move it up or down the screen +- Improved player pointer caching for better performance - Map is now cropped at the bottom ## [2.9.7] - 2021-06-02 - Buff expiration alert diff --git a/src/d2r-map.ahk b/src/d2r-map.ahk index ce86a30..76bb32e 100644 --- a/src/d2r-map.ahk +++ b/src/d2r-map.ahk @@ -323,7 +323,7 @@ While 1 { } if (Mod(ticktock, 6)) { checkAutomapVisibility(d2rprocess, gameMemoryData) - CoordMode, mouse, Client ; Coordinates are relative to the active window's client area + CoordMode,Mouse,Screen MouseGetPos, mouseX, mouseY buffBarLayer.checkHover(mouseX, mouseY) if (buffBarLayer.removedIcons.Length() > 0) { diff --git a/src/init/readSettings.ahk b/src/init/readSettings.ahk index faf2843..45023a3 100644 --- a/src/init/readSettings.ahk +++ b/src/init/readSettings.ahk @@ -80,6 +80,7 @@ readSettings(settingsFile, ByRef settings) { settings["includeVendorItems"] := 1 settings["buffBarEnabled"] := 1 settings["buffBarIconSize"] := 75 + settings["buffBarVerticalOffset"] := 0 settings["allowTextToSpeech"] := 1 settings["textToSpeechVolume"] := 50 diff --git a/src/localization.ini b/src/localization.ini index d9dad98..ad78743 100644 Binary files a/src/localization.ini and b/src/localization.ini differ diff --git a/src/ui/gdip/BuffBarLayer.ahk b/src/ui/gdip/BuffBarLayer.ahk index 4478bdd..5c3eea4 100644 --- a/src/ui/gdip/BuffBarLayer.ahk +++ b/src/ui/gdip/BuffBarLayer.ahk @@ -25,7 +25,7 @@ class BuffBarLayer { this.textBoxHeight := this.imageSize + this.yoffset this.leftMargin := gameWindowX + (gameWindowWidth / 2) - (this.textBoxWidth / 2) - this.topMargin := gameWindowY + gameWindowHeight - (gameWindowHeight / 4.5) + this.topMargin := gameWindowY + gameWindowHeight - (gameWindowHeight / 4.3) + settings["buffBarVerticalOffset"] pToken := Gdip_Startup() DetectHiddenWindows, On diff --git a/src/ui/settingsPanel.ahk b/src/ui/settingsPanel.ahk index 58a5e21..ea373ef 100644 Binary files a/src/ui/settingsPanel.ahk and b/src/ui/settingsPanel.ahk differ