Fixes (6)
This commit is contained in:
@@ -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}})
|
||||
|
||||
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user