fix: clean faction arrow transparency
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -270,18 +270,19 @@ local function _ApplyArrowStyle()
|
|||||||
|
|
||||||
if styleChanged then
|
if styleChanged then
|
||||||
arrowFrame.arrow:SetTexture(style.texturePath)
|
arrowFrame.arrow:SetTexture(style.texturePath)
|
||||||
|
arrowFrame._arrowStyleMode = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
if style.mode == "sheet" then
|
if arrowFrame._arrowStyleMode ~= style.mode then
|
||||||
arrowFrame.arrow:SetTexCoord(0, ARROW_CELL_W / ARROW_SHEET_SIZE, 0, ARROW_CELL_H / ARROW_SHEET_SIZE)
|
if style.mode == "sheet" then
|
||||||
if arrowFrame.arrow.SetRotation then
|
arrowFrame.arrow:SetTexCoord(0, ARROW_CELL_W / ARROW_SHEET_SIZE, 0, ARROW_CELL_H / ARROW_SHEET_SIZE)
|
||||||
arrowFrame.arrow:SetRotation(0)
|
else
|
||||||
end
|
arrowFrame.arrow:SetTexCoord(0, 1, 0, 1)
|
||||||
else
|
end
|
||||||
arrowFrame.arrow:SetTexCoord(0, 1, 0, 1)
|
|
||||||
if arrowFrame.arrow.SetRotation then
|
if arrowFrame.arrow.SetRotation then
|
||||||
arrowFrame.arrow:SetRotation(0)
|
arrowFrame.arrow:SetRotation(0)
|
||||||
end
|
end
|
||||||
|
arrowFrame._arrowStyleMode = style.mode
|
||||||
end
|
end
|
||||||
|
|
||||||
local scale = _GetArrowScale()
|
local scale = _GetArrowScale()
|
||||||
|
|||||||
Reference in New Issue
Block a user