unitframes: option for configurable indicator size

This commit is contained in:
Grookshank
2017-10-28 13:28:48 +02:00
committed by shagu
parent 1443c120cc
commit 3aec8e2f58
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -96,6 +96,7 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("unitframes", nil, "show_procs", "0")
pfUI:UpdateConfig("unitframes", nil, "all_procs", "0")
pfUI:UpdateConfig("unitframes", nil, "debuffs_class", "0")
pfUI:UpdateConfig("unitframes", nil, "indicator_size", "10")
pfUI:UpdateConfig("unitframes", nil, "clickcast", "")
pfUI:UpdateConfig("unitframes", nil, "clickcast_shift", "")
+1 -1
View File
@@ -1135,7 +1135,7 @@ function pfUI.uf:ClickAction(button)
end
function pfUI.uf:AddIcon(frame, pos, icon)
local iconsize = 10
local iconsize = C.unitframes.indicator_size
if not frame.hp then return end
local frame = frame.hp.bar
if pos > floor(frame:GetWidth() / iconsize) then return end
+1
View File
@@ -915,6 +915,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Show Hots of all Classes"], C.unitframes, "all_hots", "checkbox")
CreateConfig(this, T["Show Procs as Buff Indicators"], C.unitframes, "show_procs", "checkbox")
CreateConfig(this, T["Show Procs of all Classes"], C.unitframes, "all_procs", "checkbox")
CreateConfig(this, T["Buff Indicator Size"], C.unitframes, "indicator_size")
CreateConfig(this, T["Only Show Indicators for Dispellable Debuffs"], C.unitframes, "debuffs_class", "checkbox")
CreateConfig(this, T["Clickcast Spells"], nil, nil, "header")
CreateConfig(this, T["Click Action"], C.unitframes, "clickcast", nil, nil, nil, nil, "STRING")