ArcHUD3

ArcHUD3

594k Downloads

Shield display bug in hp bar #93

nyyr opened this issue ยท 1 comments

commented

13matuc37 created this issue Apr 1, 2017

when i buff my mage shield and have a specific amount of life a part of the shield display in the ArcHUD shield display is cutted of and displayed mirroed above the hp bar. i made 2 Screenshots to show you what i mean since english isn't my native language and it's hard for me to describe the problem properly.

Screenshot Nr.1: https://q88i.imgup.net/WoWScrnSho5bac.jpg

Screenshot Nr.2: https://l76i.imgup.net/WoWScrnSho99ed.jpg

commented

Garrett128 posted a comment Sep 14, 2017

Hi,

I had stumbled upon this problem a while back and had tried tackle it myself. I think i had found the culprit, in one of the slice functions from the DoQuadrant() funciton of the ArcHud3\RingTemplate.lua file.

I had spent quite some time to understand your math with slices, chips and quadrants and follow the code and even now i am not quite sure i totally got it, but at the very least my solution could give you a good place to start looking yourself.

So the following code snippet is from the DoQuadrant() function :

-- roughly maximize main texture size
if (A > 45) then
-- 'cut' textures horizontally
if (A < 90) then
-- Chip1 subset is from I to (NIx,Oy)
SS(C1, self, OR, NIx, Ix, Iy, Oy)
end
-- Main subset is from O to NI
SS(T, self, OR, NIx, Ox, Oy, NIy)
if (A2 > 0) then
-- Chip2 subset is from NO to (Ox,NIy)
-- SS(C2, self, OR, Ox, NOx, NOy, NIy)
SS(C2, self, OR, NOx, Ox, NIy, NOy)
end
else
-- 'cut' textures vertically
if (A < 90) then
-- Chip1 subset is from (Ix,NOy) to O
SS(C1, self, OR, Ix, Ox, Oy, NOy)
end
-- Main subset is from NO to I
SS(T, self, OR, NOx, Ix, Iy, NOy)
if (A2 > 0) then
-- Chip2 subset is from NI to (NOx,Iy)
-- SS(C2, self, OR, NIx, NOx, Iy, NIy)
SS(C2, self, OR, NOx, NIx, NIy, Iy)
end
end

There are two SS(...) lines which are commented and the corrections i think should maybe fix it underneath. As i said this was a while back and i am not sure if i changed things anywhere else, as i have been maintaining my own copy of Archud3 for a while, but like i said it should, at the very least, provide a good place to start looking.

EDIT: This seems to be the same issue as in ticket #90 (Minor graphical issue). These two tickets should perhaps be merged.

Since the pictures from the OP's post are no longer available i will repost Kimoshi's photo of the issue : http://imgur.com/a/IhYnl

Cheers.