Commit 7bbc605a authored by Azilroka's avatar Azilroka

More Cleanup

parent bec2199b
This diff is collapsed.
......@@ -100,7 +100,6 @@ PA.Authors = GetAddOnMetadata('ProjectAzilroka', 'Author'):gsub(", ", " ")
local Color = CUSTOM_CLASS_COLORS and CUSTOM_CLASS_COLORS[PA.MyClass] or RAID_CLASS_COLORS[PA.MyClass]
PA.ClassColor = { Color.r, Color.g, Color.b }
PA.FontFlags = { MONOCHROME = 'MONOCHROME', MONOCHROMEOUTLINE = 'MONOCHROMEOUTLINE', NONE = 'None', OUTLINE = 'OUTLINE', THICKOUTLINE = 'THICKOUTLINE' }
PA.AllPoints = { CENTER = 'CENTER', BOTTOM = 'BOTTOM', TOP = 'TOP', LEFT = 'LEFT', RIGHT = 'RIGHT', BOTTOMLEFT = 'BOTTOMLEFT', BOTTOMRIGHT = 'BOTTOMRIGHT', TOPLEFT = 'TOPLEFT', TOPRIGHT = 'TOPRIGHT' }
PA.ElvUI = PA:IsAddOnEnabled('ElvUI', PA.MyName)
......@@ -163,6 +162,16 @@ function PA:Print(...)
print(PA:Color(PA.Title..':'), ...)
end
function PA:ShortValue(value)
if (value >= 1e6) then
return gsub(format("%.1fm", value / 1e6), "%.?0+([km])$", "%1")
elseif (value >= 1e3 or value <= -1e3) then
return gsub(format("%.1fk", value / 1e3), "%.?0+([km])$", "%1")
else
return value
end
end
function PA:RGBToHex(r, g, b, header, ending)
r = r <= 1 and r >= 0 and r or 1
g = g <= 1 and g >= 0 and g or 1
......
......@@ -1350,12 +1350,7 @@ function EPB:GetOptions()
max = 24,
step = 1
},
FontFlag = {
name = "Font Flag",
order = 16,
type = "select",
values = PA.FontFlags
},
FontFlag = PA.ACH:FontFlags(PA.ACL["Font Flag"], nil, 16),
TextOffset = {
order = 17,
name = "Health/Experience Text Offset",
......
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