Skip to content

Commit

Permalink
Remove main bar specific scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
ls- committed May 8, 2023
1 parent 39163a4 commit 307de35
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
1 change: 0 additions & 1 deletion ls_UI/core/defaults.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,6 @@ D.profile = {
lock = true,
rightclick_selfcast = false,
blizz_vehicle = false,
scale = 1,
endcaps = "BOTH", -- "LEFT", "RIGHT", "NONE"
cooldown = {
exp_threshold = 5,
Expand Down
9 changes: 9 additions & 0 deletions ls_UI/core/modernize.lua
Original file line number Diff line number Diff line change
Expand Up @@ -785,6 +785,15 @@ function P:Modernize(data, name, key)

data.version = 10010001
end

--> 100100.03
if data.version < 10010003 then
if data.bars then
data.bars.scale = nil
end

data.version = 10010003
end
elseif key == "private" then
--> 90001.05
if data.version < 9000105 then
Expand Down
17 changes: 0 additions & 17 deletions ls_UI_Options/bars/core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -166,23 +166,6 @@ function CONFIG:CreateActionBarsOptions(order)
return not (BARS:IsInit() and BARS:IsRestricted())
end,
},
scale = {
order = inc(1),
type = "range",
name = L["SCALE"],
min = 1, max = 2, step = 0.01, bigStep = 0.1,
get = function()
return C.db.profile.bars.scale
end,
set = function(_, value)
C.db.profile.bars.scale = value

BARS:UpdateScale()
end,
disabled = function()
return not (BARS:IsInit() and BARS:IsRestricted())
end,
},
blizz_vehicle = {
order = inc(1),
type = "toggle",
Expand Down

0 comments on commit 307de35

Please sign in to comment.