Remove classic era checks for functions that were added.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user