diff --git a/LunaUnitFrames.lua b/LunaUnitFrames.lua index 5d0be9b..85b0e42 100755 --- a/LunaUnitFrames.lua +++ b/LunaUnitFrames.lua @@ -1,7 +1,7 @@ -- Luna Unit Frames 4.0 by Aviana LUF = select(2, ...) -LUF.version = 4378 +LUF.version = 4379 local L = LUF.L local ACR = LibStub("AceConfigRegistry-3.0", true) @@ -848,6 +848,7 @@ function LUF.ApplySettings(frame) Auras.debuffFilter = AuraConfig.filterdebuffs Auras.debuffSize = AuraConfig.debuffsize Auras.largeDebuffSize = AuraConfig.enlargeddebuffsize + Auras.buffcountfontsize = AuraConfig.buffcountfontsize Auras.wrapDebuffSide = AuraConfig.wrapdebuffside Auras.wrapDebuff = AuraConfig.wrapdebuff Auras.debuffOffset = AuraConfig.debuffOffset diff --git a/LunaUnitFrames.toc b/LunaUnitFrames.toc index dcd4665..60a5d9e 100755 --- a/LunaUnitFrames.toc +++ b/LunaUnitFrames.toc @@ -1,8 +1,8 @@ -## Interface: 11504 +## Interface: 11505 ## Title: Luna Unit Frames ## Notes: ## Author: Aviana -## Version: 4378 +## Version: 4379 ## SavedVariables: LunaUFDB ## OptionalDeps: Ace3, LibSharedMedia-3.0, AceGUI-3.0-SharedMediaWidgets, Clique diff --git a/libs/oUF_Plugins/oUF_SimpleAuras/oUF_SimpleAuras.lua b/libs/oUF_Plugins/oUF_SimpleAuras/oUF_SimpleAuras.lua index 39c8d3f..6f84b71 100644 --- a/libs/oUF_Plugins/oUF_SimpleAuras/oUF_SimpleAuras.lua +++ b/libs/oUF_Plugins/oUF_SimpleAuras/oUF_SimpleAuras.lua @@ -279,7 +279,8 @@ local function updateIcon(element, unit, index, position, filter, isDebuff) if(button.icon) then button.icon:SetTexture(texture) end button.count:SetText(count > 1 and count or "") - + button.count:SetFont(button.count:GetFont(), element.buffcountfontsize or 10, "OUTLINE") + local size local preventBuffGrowth, preventDebuffGrowth = (element.buffAnchor == "INFRAME" or element.buffAnchor == "INFRAMECENTER"), (element.debuffAnchor == "INFRAME" or element.debuffAnchor == "INFRAMECENTER") if isDebuff then diff --git a/locales/deDE.lua b/locales/deDE.lua index 30b1323..91a5ffd 100644 --- a/locales/deDE.lua +++ b/locales/deDE.lua @@ -432,6 +432,8 @@ local L = { ["Color of cast bar when cast not interruptible"] = "Color of cast bar when cast not interruptible", ["Not interruptible cast text"] = "Not interruptible cast text", ["Color of cast bar text when cast not interruptible"] = "Color of cast bar text when cast not interruptible", +["BuffCountFontSize"] = "Buff Count Font Size", +["BuffCountFontSizeText"] = "Set the font size of the count for buffs with mutiple stacks", } local LUF = select(2, ...) diff --git a/locales/enUS.lua b/locales/enUS.lua index b1eb4dc..ad5c681 100644 --- a/locales/enUS.lua +++ b/locales/enUS.lua @@ -431,6 +431,8 @@ local L = { ["Color of cast bar when cast not interruptible"] = "Color of cast bar when cast not interruptible", ["Not interruptible cast text"] = "Not interruptible cast text", ["Color of cast bar text when cast not interruptible"] = "Color of cast bar text when cast not interruptible", +["BuffCountFontSize"] = "Buff Count Font Size", +["BuffCountFontSizeText"] = "Set the font size of the count for buffs with mutiple stacks", } LUF.L = L \ No newline at end of file diff --git a/locales/koKR.lua b/locales/koKR.lua index 1982fe7..e8b7179 100644 --- a/locales/koKR.lua +++ b/locales/koKR.lua @@ -429,6 +429,8 @@ local L = { ["Color of cast bar when cast not interruptible"] = "Color of cast bar when cast not interruptible", ["Not interruptible cast text"] = "Not interruptible cast text", ["Color of cast bar text when cast not interruptible"] = "Color of cast bar text when cast not interruptible", +["BuffCountFontSize"] = "Buff Count Font Size", +["BuffCountFontSizeText"] = "Set the font size of the count for buffs with mutiple stacks", } local LUF = select(2, ...) diff --git a/locales/zhCN.lua b/locales/zhCN.lua index d3a8fb9..2817b51 100644 --- a/locales/zhCN.lua +++ b/locales/zhCN.lua @@ -429,6 +429,8 @@ local L = { ["Color of cast bar when cast not interruptible"] = "Color of cast bar when cast not interruptible", ["Not interruptible cast text"] = "Not interruptible cast text", ["Color of cast bar text when cast not interruptible"] = "Color of cast bar text when cast not interruptible", +["BuffCountFontSize"] = "Buff Count Font Size", +["BuffCountFontSizeText"] = "Set the font size of the count for buffs with mutiple stacks", } local LUF = select(2, ...) diff --git a/locales/zhTW.lua b/locales/zhTW.lua index 7e3f957..b52e267 100644 --- a/locales/zhTW.lua +++ b/locales/zhTW.lua @@ -431,6 +431,8 @@ local L = { ["Color of cast bar when cast not interruptible"] = "Color of cast bar when cast not interruptible", ["Not interruptible cast text"] = "Not interruptible cast text", ["Color of cast bar text when cast not interruptible"] = "Color of cast bar text when cast not interruptible", +["BuffCountFontSize"] = "Buff Count Font Size", +["BuffCountFontSizeText"] = "Set the font size of the count for buffs with mutiple stacks", } local LUF = select(2, ...) diff --git a/modules/Options.lua b/modules/Options.lua index 5dd0d93..02748c0 100644 --- a/modules/Options.lua +++ b/modules/Options.lua @@ -1058,29 +1058,38 @@ function LUF:CreateConfig() order = 5, values = {["all"] = ACHIEVEMENTFRAME_FILTER_ALL, ["self"] = L["Own"], ["none"] = NONE}, }, + buffcountfontsize = { + name = L["BuffCountFontSize"], + desc = L["BuffCountFontSizeText"], + type = "range", + order = 6, + min = 4, + max = 40, + step = 1, + }, buffheader = { name = L["Buffs"], type = "header", - order = 6, + order = 7, }, buffs = { name = L["Buffs"], desc = string.format(L["Enable or disable the %s."],L["Buffs"]), type = "toggle", - order = 7, + order = 8, }, filterbuffs = { name = string.format(L["Filter %s"],L["Buffs"]), desc = L["Show only buffs that you or everyone of your class can apply"], type = "select", - order = 8, + order = 9, values = {[1] = OFF, [2] = L["Your own"], [3] = CLASS}, }, buffsize = { name = L["Size"], desc = L["Set the buffsize."], type = "range", - order = 9, + order = 10, min = 4, max = 50, step = 1, @@ -1089,7 +1098,7 @@ function LUF:CreateConfig() name = L["Bigger buffs"], desc = EMPHASIZE_MY_SPELLS_TEXT, type = "range", - order = 10, + order = 11, min = 0, max = 20, step = 1, diff --git a/modules/defaults.lua b/modules/defaults.lua index b552c7a..f7b4c8b 100644 --- a/modules/defaults.lua +++ b/modules/defaults.lua @@ -131,6 +131,7 @@ function LUF:LoadDefaults() weaponbuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 4, enlargeddebuffsize = 4, buffOffset = 0, @@ -326,6 +327,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -484,6 +486,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -628,6 +631,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -774,6 +778,7 @@ function LUF:LoadDefaults() debuffs = true, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 4, enlargeddebuffsize = 4, buffOffset = 0, @@ -937,6 +942,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -1085,6 +1091,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -1234,6 +1241,7 @@ function LUF:LoadDefaults() debuffs = true, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -1408,6 +1416,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -1561,6 +1570,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2057,6 +2067,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2232,6 +2243,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2391,6 +2403,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2551,6 +2564,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2726,6 +2740,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0, @@ -2885,6 +2900,7 @@ function LUF:LoadDefaults() debuffs = false, buffsize = 18, debuffsize = 18, + buffcountfontsize = 10, enlargedbuffsize = 0, enlargeddebuffsize = 0, buffOffset = 0,