Overlay misaligned
Turinqui opened this issue · 7 comments
hmm, are you using windowed full screen, bordered, or full screen?
also, can you verify that DumpTabQuad
is set to true in your config file?
In game settings: Windowed Fullscreen
stashvision.ini: DumpTabQuad = true
thanks! I'm working on a fix that will work across window sizes and resolutions, until then as a workaround you can update the stashvision.ahk
file and play around with some of the values for the sizing of the highlight rectangle and the positions.
the size is this block on line 167:
if isQuadTab {
rectWidth := 35
rectHeight := 35
} else {
rectWidth := 70
rectHeight := 70
}
(that's the width and height of one single square in a stash tab)
and the function at line 118 influences the starting X and Y position for the top left corner of the stash:
GetStashPosition(ByRef stashX, ByRef stashY, ByRef stashWidth, ByRef stashHeight) {
WinGetPos, poeX, poeY, poeWidth, poeHeight, Path of Exile
stashX := 23
stashY := Round(poeHeight * 0.15)
stashWidth := Round(poeWidth * 0.33)
stashHeight := poeHeight - stashY - 380
}
from your screenshot, it looks like the Y position is fine, but the X is off a bit. you should be able to fix that by changing stashX
.
I will try to get a fix for this pushed soon, but hopefully that's enough information if you're inclined to get it quickly working yourself.
Perfect,
I did dig through the code a little and had a look at another addon that utilises a stash highlight overlay - (POE-Trades-Companion), I'll have a play and report back!
Got it pretty close:
https://i.imgur.com/1tsiyQj.jpg - https://i.imgur.com/FlAKZpn.jpg
I ended up changing the numbers around and testing - in case it helps here's what I ended up with:
GetStashPosition(ByRef stashX, ByRef stashY, ByRef stashWidth, ByRef stashHeight) {
WinGetPos, poeX, poeY, poeWidth, poeHeight, Path of Exile
stashX := 16
stashY := Round(poeHeight * 0.15) ;=162
stashWidth := Round(poeWidth * 0.33) ;1920*0.33 = 633
stashHeight := poeHeight - stashY - 126 ;1080-162-126 = 792
}
if isQuadTab {
rectWidth := 26
rectHeight := 26
} else {
rectWidth := 52
rectHeight := 52
}
oh cool, I had heard of trade companion but wasn't aware it highlighted items too - very interesting, and looks like the code for figuring out coordinates for highlighting across different resolutions is
very well documented.
glad you got it to be usable, and thanks for the snippet!
huh...also looking at your screenshots, it seems like the chaos recipe is buggy too, it's highlighting identified items. I'll try to fix that as well in an upcoming update