mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
unitframes: use frame specific dispell indicators
This commit is contained in:
+10
-1
@@ -203,7 +203,6 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", nil, "show_procs", "0")
|
||||
pfUI:UpdateConfig("unitframes", nil, "show_totems", "0")
|
||||
pfUI:UpdateConfig("unitframes", nil, "all_procs", "0")
|
||||
pfUI:UpdateConfig("unitframes", nil, "debuffs_class", "0")
|
||||
pfUI:UpdateConfig("unitframes", nil, "indicator_time", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "indicator_stacks", "1")
|
||||
pfUI:UpdateConfig("unitframes", nil, "indicator_size", "10")
|
||||
@@ -387,6 +386,7 @@ function pfUI:LoadConfig()
|
||||
pfUI:UpdateConfig("unitframes", unit, "debuff_indicator", "0")
|
||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_pos", "CENTER")
|
||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_size", ".65")
|
||||
pfUI:UpdateConfig("unitframes", unit, "debuff_ind_class", "1")
|
||||
pfUI:UpdateConfig("unitframes", unit, "clickcast", "0")
|
||||
pfUI:UpdateConfig("unitframes", unit, "faderange", "0")
|
||||
pfUI:UpdateConfig("unitframes", unit, "alpha_visible", "1")
|
||||
@@ -1023,5 +1023,14 @@ function pfUI:MigrateConfig()
|
||||
pfUI_config.panel.xp.showalways = nil
|
||||
end
|
||||
|
||||
-- migrate dispell indicators into seperate options (> 4.6.1)
|
||||
if checkversion(4, 6, 1) and pfUI_config.unitframes.debuffs_class then
|
||||
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "ptarget", "fallback", "tttarget" }
|
||||
for _, unitframe in pairs(unitframes) do
|
||||
pfUI_config.unitframes[unitframe].debuff_ind_class = pfUI_config.unitframes.debuffs_class
|
||||
end
|
||||
pfUI_config.unitframes.debuffs_class = nil
|
||||
end
|
||||
|
||||
pfUI_config.version = pfUI.version.string
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user