Yellow guidance lines at 25%, 50% and 75% don't render at certain resolutions
BendyWalker opened this issue ยท 2 comments
The logic used to display the guidance lines is a little fragile. If the number of lines doesn't divide cleanly by 4, then the yellow line is not rendered.
if index == (numberOfLines * 0.5) then
line:SetColorTexture(1, 1, 0, 0.75)
elseif ((index == (numberOfLines * 0.25)) or (index == (numberOfLines * 0.75))) then
line:SetColorTexture(1, 1, 0, 0.5)
else
line:SetColorTexture(1, 1, 1, 0.25)
end
Figure out a better approach to rendering these lines that works for displays of any resolution.
Reconsider using @m4xc4v413r4's approach detailed here.
I used my code but you can do it on yours, just take the math i used to get the middle lines and the quarter lines and change the color with that.