fix: settings

This commit is contained in:
Salikh Gurgenidze
2025-12-23 15:06:33 +04:00
parent fee19fcfb2
commit 1eb2649bec
3 changed files with 19 additions and 19 deletions
+7 -7
View File
@@ -575,15 +575,15 @@ function BagFrame:ResizeFrame(currentRow, currentCol, columns)
end
-- Maximum sizes
if containerWidth > 800 then
containerWidth = 800
frameWidth = 820
if containerWidth > 1250 then
containerWidth = 1250
frameWidth = 1270
end
if containerHeight > 600 then
containerHeight = 600
if containerHeight > 1000 then
containerHeight = 1000
end
if frameHeight > 800 then
frameHeight = 800
if frameHeight > 1200 then
frameHeight = 1200
end
-- Resize frames
+7 -7
View File
@@ -398,15 +398,15 @@ function BankFrame:ResizeFrame(currentRow, currentCol, columns)
end
-- Maximum sizes
if containerWidth > 800 then
containerWidth = 800
frameWidth = 830
if containerWidth > 1250 then
containerWidth = 1250
frameWidth = 1280
end
if containerHeight > 600 then
containerHeight = 600
if containerHeight > 1000 then
containerHeight = 1000
end
if frameHeight > 800 then
frameHeight = 800
if frameHeight > 1200 then
frameHeight = 1200
end
local bankFrame = getglobal("Guda_BankFrame")
+5 -5
View File
@@ -360,7 +360,7 @@ end
-- Icon Size Slider OnLoad
function Guda_SettingsPopup_IconSizeSlider_OnLoad(self)
getglobal(self:GetName().."Low"):SetText("30px")
getglobal(self:GetName().."Low"):SetText("28px")
getglobal(self:GetName().."High"):SetText("64px")
local text = getglobal(self:GetName().."Text")
@@ -372,7 +372,7 @@ function Guda_SettingsPopup_IconSizeSlider_OnLoad(self)
text:SetFont(font, 12, flags)
end
self:SetMinMaxValues(30, 64)
self:SetMinMaxValues(28, 64)
self:SetValueStep(1)
local currentValue = Guda.Modules.DB:GetSetting("iconSize") or addon.Constants.BUTTON_SIZE
@@ -440,8 +440,8 @@ end
-- Icon Spacing Slider OnLoad
function Guda_SettingsPopup_IconSpacingSlider_OnLoad(self)
getglobal(self:GetName().."Low"):SetText("-5px")
getglobal(self:GetName().."High"):SetText("10px")
getglobal(self:GetName().."Low"):SetText("-10px")
getglobal(self:GetName().."High"):SetText("20px")
local text = getglobal(self:GetName().."Text")
text:SetText("Icon spacing")
@@ -452,7 +452,7 @@ function Guda_SettingsPopup_IconSpacingSlider_OnLoad(self)
text:SetFont(font, 12, flags)
end
self:SetMinMaxValues(-5, 10)
self:SetMinMaxValues(-10, 20)
self:SetValueStep(1)
local currentValue = Guda.Modules.DB:GetSetting("iconSpacing") or 0