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

Commit

Permalink
fixed flickering
Browse files Browse the repository at this point in the history
  • Loading branch information
joffreybesos committed May 22, 2022
1 parent 0656c8c commit 1edac38
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 15 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

All notable changes to this project will be documented in this file.

## [2.9.0] - 2021-05-22 - Bug fixes

- Fixed issue where UI would flash up while in menus/inventory
- Fixed issue where scrolls/keys in personal stash would be counted


## [2.8.9] - 2021-05-20 - Number of scrolls/keys in inventory shows on right

- You can now see a counter for the number of Identify scrolls, Portal scrolls, and Keys
Expand Down
17 changes: 10 additions & 7 deletions src/ui/gdip/ItemCounterLayer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -40,19 +40,20 @@ class ItemCounterLayer {

drawItemCounter(ByRef HUDItems) {
if (!settings["itemCounterEnabled"]) {
Gui, ItemCounter: Hide
this.hide()
return
}
if (WinActive(gameWindowId)) {
Gui, ItemCounter: Show, NA
} else {
Gui, ItemCounter: Hide
if (readUI(d2rprocess)) {
this.hide()
return
}
if (readUI(d2rprocess)) {
Gui, ItemCounter: Hide
if (WinActive(gameWindowId)) {
this.show()
} else {
this.hide()
return
}

fontSize := this.itemCounterFontSize

; pPen := Gdip_CreatePen(0xff00FF00, 2)
Expand Down Expand Up @@ -91,10 +92,12 @@ class ItemCounterLayer {
}

show() {
this.visible := true
Gui, ItemCounter: Show, NA
}

hide() {
this.visible := false
Gui, ItemCounter: Hide
}

Expand Down
9 changes: 5 additions & 4 deletions src/ui/gdip/ItemLogLayer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,17 @@ class ItemLogLayer {
Gui, ItemLog: Hide
return
}
if (readUI(d2rprocess)) {
Gui, ItemLog: Hide
return
}
if (WinActive(gameWindowId)) {
Gui, ItemLog: Show, NA
} else {
Gui, ItemLog: Hide
return
}
if (readUI(d2rprocess)) {
Gui, ItemLog: Hide
return
}

fontSize := this.itemLogFontSize
row := 0
for kk, item in itemLogItems {
Expand Down
9 changes: 5 additions & 4 deletions src/ui/gdip/PartyInfoLayer.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,18 @@ class PartyInfoLayer {
} else {
Gui, PartyInfo: Hide
return
}
if (readUI(d2rprocess)) {
Gui, PartyInfo: Hide
return
}
if (settings["showPartyLocations"]) {
Gui, PartyInfo: Show, NA
} else {
Gui, PartyInfo: Hide
return
}
if (readUI(d2rprocess)) {
Gui, PartyInfo: Hide
return
}

fontSize := this.partyInfoFontSize

; get the current players part id
Expand Down

0 comments on commit 1edac38

Please sign in to comment.