fix: settings
This commit is contained in:
+7
-7
@@ -575,15 +575,15 @@ function BagFrame:ResizeFrame(currentRow, currentCol, columns)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Maximum sizes
|
-- Maximum sizes
|
||||||
if containerWidth > 800 then
|
if containerWidth > 1250 then
|
||||||
containerWidth = 800
|
containerWidth = 1250
|
||||||
frameWidth = 820
|
frameWidth = 1270
|
||||||
end
|
end
|
||||||
if containerHeight > 600 then
|
if containerHeight > 1000 then
|
||||||
containerHeight = 600
|
containerHeight = 1000
|
||||||
end
|
end
|
||||||
if frameHeight > 800 then
|
if frameHeight > 1200 then
|
||||||
frameHeight = 800
|
frameHeight = 1200
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Resize frames
|
-- Resize frames
|
||||||
|
|||||||
+7
-7
@@ -398,15 +398,15 @@ function BankFrame:ResizeFrame(currentRow, currentCol, columns)
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- Maximum sizes
|
-- Maximum sizes
|
||||||
if containerWidth > 800 then
|
if containerWidth > 1250 then
|
||||||
containerWidth = 800
|
containerWidth = 1250
|
||||||
frameWidth = 830
|
frameWidth = 1280
|
||||||
end
|
end
|
||||||
if containerHeight > 600 then
|
if containerHeight > 1000 then
|
||||||
containerHeight = 600
|
containerHeight = 1000
|
||||||
end
|
end
|
||||||
if frameHeight > 800 then
|
if frameHeight > 1200 then
|
||||||
frameHeight = 800
|
frameHeight = 1200
|
||||||
end
|
end
|
||||||
|
|
||||||
local bankFrame = getglobal("Guda_BankFrame")
|
local bankFrame = getglobal("Guda_BankFrame")
|
||||||
|
|||||||
@@ -360,7 +360,7 @@ end
|
|||||||
|
|
||||||
-- Icon Size Slider OnLoad
|
-- Icon Size Slider OnLoad
|
||||||
function Guda_SettingsPopup_IconSizeSlider_OnLoad(self)
|
function Guda_SettingsPopup_IconSizeSlider_OnLoad(self)
|
||||||
getglobal(self:GetName().."Low"):SetText("30px")
|
getglobal(self:GetName().."Low"):SetText("28px")
|
||||||
getglobal(self:GetName().."High"):SetText("64px")
|
getglobal(self:GetName().."High"):SetText("64px")
|
||||||
|
|
||||||
local text = getglobal(self:GetName().."Text")
|
local text = getglobal(self:GetName().."Text")
|
||||||
@@ -372,7 +372,7 @@ function Guda_SettingsPopup_IconSizeSlider_OnLoad(self)
|
|||||||
text:SetFont(font, 12, flags)
|
text:SetFont(font, 12, flags)
|
||||||
end
|
end
|
||||||
|
|
||||||
self:SetMinMaxValues(30, 64)
|
self:SetMinMaxValues(28, 64)
|
||||||
self:SetValueStep(1)
|
self:SetValueStep(1)
|
||||||
|
|
||||||
local currentValue = Guda.Modules.DB:GetSetting("iconSize") or addon.Constants.BUTTON_SIZE
|
local currentValue = Guda.Modules.DB:GetSetting("iconSize") or addon.Constants.BUTTON_SIZE
|
||||||
@@ -440,8 +440,8 @@ end
|
|||||||
|
|
||||||
-- Icon Spacing Slider OnLoad
|
-- Icon Spacing Slider OnLoad
|
||||||
function Guda_SettingsPopup_IconSpacingSlider_OnLoad(self)
|
function Guda_SettingsPopup_IconSpacingSlider_OnLoad(self)
|
||||||
getglobal(self:GetName().."Low"):SetText("-5px")
|
getglobal(self:GetName().."Low"):SetText("-10px")
|
||||||
getglobal(self:GetName().."High"):SetText("10px")
|
getglobal(self:GetName().."High"):SetText("20px")
|
||||||
|
|
||||||
local text = getglobal(self:GetName().."Text")
|
local text = getglobal(self:GetName().."Text")
|
||||||
text:SetText("Icon spacing")
|
text:SetText("Icon spacing")
|
||||||
@@ -452,7 +452,7 @@ function Guda_SettingsPopup_IconSpacingSlider_OnLoad(self)
|
|||||||
text:SetFont(font, 12, flags)
|
text:SetFont(font, 12, flags)
|
||||||
end
|
end
|
||||||
|
|
||||||
self:SetMinMaxValues(-5, 10)
|
self:SetMinMaxValues(-10, 20)
|
||||||
self:SetValueStep(1)
|
self:SetValueStep(1)
|
||||||
|
|
||||||
local currentValue = Guda.Modules.DB:GetSetting("iconSpacing") or 0
|
local currentValue = Guda.Modules.DB:GetSetting("iconSpacing") or 0
|
||||||
|
|||||||
Reference in New Issue
Block a user