Skip to content

Commit

Permalink
fixed #13: startAngle on left side (e.g., texture bug for health/abso…
Browse files Browse the repository at this point in the history
…rb ring)
  • Loading branch information
nyyr committed Jul 4, 2018
1 parent eb8e4f2 commit 6e7032f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RingTemplate.lua
Expand Up @@ -135,7 +135,7 @@ function ArcHUDRingTemplate:DoQuadrantReversed(A, T, SS, A2)
--
-- S

-- Ring fills from E to N (N = 90°, E = 0°)
-- Ring fills from E to N (N = 90°, E = 0°)
-- Drawing scheme uses three/four locations
-- E (Ex,Ey) - The start position of the arc (Ex=1, Ey=0 if start angle = 0) (towards East)
-- O (Ox,Oy) - Intersection of angle line with Outer edge
Expand Down Expand Up @@ -255,7 +255,7 @@ function ArcHUDRingTemplate:DoQuadrant(A, T, SS, A2)
--
-- S

-- Ring fills from N to E (N = 0°, E = 90°)
-- Ring fills from N to E (N = 0°, E = 90°)
-- Drawing scheme uses three/four locations
-- N (Nx,Ny) - The start position of the arc (Nx=0, Ny=1 if start angle = 0) (towards North)
-- O (Ox,Oy) - Intersection of angle line with Outer edge
Expand Down Expand Up @@ -313,7 +313,7 @@ function ArcHUDRingTemplate:DoQuadrant(A, T, SS, A2)
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
Expand Down

0 comments on commit 6e7032f

Please sign in to comment.