mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 03:06:01 +00:00
unitframes: option for configurable indicator size
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user