unitframes: option for configurable indicator size

This commit is contained in:
Grookshank
2017-11-02 19:01:27 +01: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