Commit ee2dacb1 authored by Simpy's avatar Simpy 🐹

better function name

parent 11f8d7b8
......@@ -1938,7 +1938,7 @@ function E:Initialize()
self:UIScale()
if not E.db.general.cropIcon then E.TexCoords = {0, 1, 0, 1} end
self:BuildShortValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
self:BuildPrefixValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
self:LoadCommands() --Load Commands
self:InitializeModules() --Load Modules
......
......@@ -22,7 +22,7 @@ E.ShortPrefixStyles = {
["METRIC"] = {{1e12,"T"}, {1e9,"G"}, {1e6,"M"}, {1e3,"k"}}
}
function E:BuildShortValues(decimalLength, prefixStyle)
function E:BuildPrefixValues(decimalLength, prefixStyle)
if next(E.ShortPrefixValues) then wipe(E.ShortPrefixValues) end
E.ShortPrefixValues = E:CopyTable(E.ShortPrefixValues, E.ShortPrefixStyles[prefixStyle])
......
......@@ -129,7 +129,7 @@ E.Options.args.general = {
min = 0, max = 4, step = 1,
set = function(info, value)
E.db.general.decimalLength = value
E:BuildShortValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
E:BuildPrefixValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
E:StaticPopup_Show("CONFIG_RL")
end,
},
......@@ -140,7 +140,7 @@ E.Options.args.general = {
desc = L["The unit prefixes you want to use when values are shortened in ElvUI. This is mostly used on UnitFrames."],
set = function(info, value)
E.db.general.numberPrefixStyle = value
E:BuildShortValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
E:BuildPrefixValues(E.db.general.decimalLength, E.db.general.numberPrefixStyle)
E:StaticPopup_Show("CONFIG_RL")
end,
values = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment