More fixes for dragonflight

This commit is contained in:
Tercio Jose
2022-09-02 09:24:44 -03:00
parent 5c2e1a19f6
commit 691a3d5e72
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
local dversion = 343
local dversion = 344
local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
+6 -1
View File
@@ -16,7 +16,12 @@ local CreateImageEditorFrame = function()
window:SetClampedToScreen (true)
tinsert (UISpecialFrames, "DetailsFrameworkImageEdit")
window:SetFrameStrata ("TOOLTIP")
window:SetMaxResize (500, 500)
if (not DetailsFramework.IsDragonflight()) then
window:SetMaxResize(500, 500)
else
window:SetResizeBounds(100, 100, 500, 500)
end
_G.DetailsFrameworkImageEditTable = window
+1 -1
View File
@@ -18,7 +18,7 @@
_detalhes.BFACORE = 131 --core version on BFA launch
_detalhes.SHADOWLANDSCORE = 143 --core version on Shadowlands launch
_detalhes.dragonflight_beta_version = 17
_detalhes.dragonflight_beta_version = 18
Details = _detalhes
+4 -2
View File
@@ -7949,8 +7949,10 @@ function Details:CheckForTextTimeCounter(combatStart) --called from combat start
if (Details.instance_title_text_timer[instance:GetId()] and instance.baseframe and instance:IsEnabled() and instance.menu_attribute_string) then --check if the instance is initialized
Details.Schedules.Cancel(Details.instance_title_text_timer[instance:GetId()])
local currentText = instance:GetTitleBarText()
currentText = currentText:gsub("%[.*%] ", "")
instance:SetTitleBarText(currentText)
if (currentText) then
currentText = currentText:gsub("%[.*%] ", "")
instance:SetTitleBarText(currentText)
end
end
end
end