Fixes (6)

This commit is contained in:
Tercio Jose
2022-09-01 20:05:31 -03:00
parent e6511163b7
commit 295287cd0b
3 changed files with 23 additions and 7 deletions
+8 -2
View File
@@ -238,8 +238,14 @@ function Details:CreateEventTrackerFrame(parent, name)
--> main farame
local f = CreateFrame ("frame", name, parent or UIParent,"BackdropTemplate")
f:SetPoint ("center", UIParent, "center")
f:SetMinResize (150, 40)
f:SetMaxResize (800, 1024)
if (not DetailsFramework.IsDragonflight()) then
f:SetMinResize (150, 40)
f:SetMaxResize (800, 1024)
else
--f:SetResizeBounds(150, 40, 800, 1024)
end
f:SetSize (_detalhes.event_tracker.frame.width, _detalhes.event_tracker.frame.height)
f:SetBackdrop ({bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tile = true, tileSize = 16, insets = {left = 0, right = 0, top = 0, bottom = 0}})
+7 -2
View File
@@ -3664,8 +3664,13 @@ function gump:CriaJanelaPrincipal (ID, instancia, criando)
baseframe:SetPoint ("center", _UIParent)
baseframe:EnableMouseWheel (false)
baseframe:EnableMouse (true)
baseframe:SetMinResize (150, 7)
baseframe:SetMaxResize (_detalhes.max_window_size.width, _detalhes.max_window_size.height)
if (not DetailsFramework.IsDragonflight()) then
baseframe:SetMinResize (150, 7)
baseframe:SetMaxResize (_detalhes.max_window_size.width, _detalhes.max_window_size.height)
else
--baseframe:SetResizeBounds(150, 7, _detalhes.max_window_size.width, _detalhes.max_window_size.height)
end
baseframe:SetBackdrop (gump_fundo_backdrop)
baseframe:SetBackdropColor (instancia.bg_r, instancia.bg_g, instancia.bg_b, instancia.bg_alpha)
@@ -212,9 +212,14 @@ local function CreatePluginFrames()
SOF:SetMovable (true)
SOF:SetResizable (true)
SOF:SetClampedToScreen (true)
SOF:SetMinResize (150, 10)
SOF:SetMaxResize (800, 1024)
if (not DetailsFramework.IsDragonflight()) then
SOF:SetMinResize (150, 10)
SOF:SetMaxResize (800, 1024)
else
--SOF:SetResizeBounds(150, 10, 800, 1024)
end
function StreamOverlay:SaveWindowSizeAnLocation()
--> save size first
StreamOverlay.db.main_frame_size [1] = SOF:GetWidth()