Skip to content
This repository has been archived by the owner on Dec 21, 2022. It is now read-only.

Commit

Permalink
buff bar vertical offset
Browse files Browse the repository at this point in the history
  • Loading branch information
joffreybesos committed Jun 3, 2022
1 parent dd6ce83 commit 32b7bb0
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 4 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/d2r-map.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions src/init/readSettings.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified src/localization.ini
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ui/gdip/BuffBarLayer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Binary file modified src/ui/settingsPanel.ahk
Binary file not shown.

0 comments on commit 32b7bb0

Please sign in to comment.