Remove classic era checks for functions that were added.

This commit is contained in:
Flamanis
2023-08-31 15:40:06 -05:00
parent 5cef044c5c
commit bc2ab474e7
5 changed files with 13 additions and 35 deletions
+3 -6
View File
@@ -323,12 +323,9 @@ detailsFramework.FrameContainerMixin = {
frameContainer:CheckResizeLockedState()
frameContainer:CheckMovableLockedState()
if (frameContainer.SetMinResize) then --old versions of the game uses this method
frameContainer:SetMinResize(50, 50)
frameContainer:SetMaxResize(1000,1000)
else
frameContainer:SetResizeBounds(50, 50, 1000, 1000) --new versions has this method
end
frameContainer:SetResizeBounds(50, 50, 1000, 1000) --new versions has this method
end,
---run when the container has its size changed
+2 -6
View File
@@ -15,12 +15,8 @@ local CreateImageEditorFrame = function()
editorWindow:SetClampedToScreen(true)
tinsert(UISpecialFrames, "DetailsFrameworkImageEdit")
editorWindow:SetFrameStrata("TOOLTIP")
if (not DetailsFramework.IsDragonflight()) then
editorWindow:SetMaxResize(500, 500)
else
editorWindow:SetResizeBounds(100, 100, 500, 500)
end
editorWindow:SetResizeBounds(100, 100, 500, 500)
_G.DetailsFrameworkImageEditTable = editorWindow