Merge pull request #397 from Flamanis/Gradient-on-Wrath

Use Wrath with Retail API check for gradients
This commit is contained in:
Tercio Jose
2022-12-07 19:02:52 -03:00
committed by GitHub
+2 -2
View File
@@ -300,7 +300,7 @@ detailsFramework:Mixin(ImageMetaFunctions, detailsFramework.ScriptHookMixin)
if (texture) then
if (type(texture) == "table") then
if (texture.gradient) then
if (detailsFramework.IsDragonflight() or ImageObject.image.SetGradient) then
if (detailsFramework.IsDragonflight() or detailsFramework.IsWotLKWowWithRetailAPI()) then
ImageObject.image:SetColorTexture(1, 1, 1, 1)
local fromColor = detailsFramework:FormatColor("tablemembers", texture.fromColor)
local toColor = detailsFramework:FormatColor("tablemembers", texture.toColor)
@@ -343,4 +343,4 @@ detailsFramework:Mixin(ImageMetaFunctions, detailsFramework.ScriptHookMixin)
setmetatable(ImageObject, ImageMetaFunctions)
return ImageObject
end
end