Merge pull request #395 from Flamanis/WrathPTRBackend

Add calls to Wrath With Retail for frame setup
This commit is contained in:
Tercio Jose
2022-12-05 13:50:53 -03:00
committed by GitHub
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -234,7 +234,7 @@ function _detalhes.PlayBestDamageOnGuild (damage)
Portrait.scale:SetStartDelay (0)
Portrait.scale:SetEndDelay (0)
if (DetailsFramework.IsDragonflight()) then
if (DetailsFramework.IsDragonflight() or DetailsFramework.IsWotLKWowWithRetailAPI()) then
Portrait.scale:SetScaleFrom (0, 0)
Portrait.scale:SetScaleTo (1, 1)
else
+2 -2
View File
@@ -239,7 +239,7 @@ function Details:CreateEventTrackerFrame(parent, name)
local f = CreateFrame("frame", name, parent or UIParent,"BackdropTemplate")
f:SetPoint("center", UIParent, "center")
if (not DetailsFramework.IsDragonflight()) then
if (not DetailsFramework.IsDragonflight() and not DetailsFramework.IsWotLKWowWithRetailAPI()) then
f:SetMinResize (150, 40)
f:SetMaxResize (800, 1024)
else
@@ -788,4 +788,4 @@ function Details:CreateEventTrackerFrame(parent, name)
_detalhes.Broadcaster_EventTrackerLoaded = true
_detalhes.Broadcaster_EventTrackerFrame = f
f:Hide()
end
end
+1 -1
View File
@@ -3603,7 +3603,7 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
baseframe:EnableMouseWheel(false)
baseframe:EnableMouse(true)
if (not DetailsFramework.IsDragonflight()) then
if (not DetailsFramework.IsDragonflight() and not DetailsFramework.IsWotLKWowWithRetailAPI()) then
baseframe:SetMinResize (150, 7)
baseframe:SetMaxResize (Details.max_window_size.width, Details.max_window_size.height)
else