mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-18 10:40:48 +00:00
config: migrate legacy buff/debuff naming
This commit is contained in:
@@ -744,5 +744,16 @@ function pfUI:MigrateConfig()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- migrating legacy buff/debuff naming (> 3.5.0)
|
||||||
|
if checkversion(3, 5, 0) then
|
||||||
|
local unitframes = { "player", "target", "focus", "group", "grouptarget", "grouppet", "raid", "ttarget", "pet", "fallback" }
|
||||||
|
|
||||||
|
for _, unitframe in pairs(unitframes) do
|
||||||
|
local entry = pfUI_config.unitframes[unitframe]
|
||||||
|
if entry.buffs and entry.buffs == "hide" then entry.buffs = "off" end
|
||||||
|
if entry.debuffs and entry.debuffs == "hide" then entry.debuffs = "off" end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
pfUI_config.version = pfUI.version.string
|
pfUI_config.version = pfUI.version.string
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
## Title: |cff33ffccpf|cffffffffUI
|
## Title: |cff33ffccpf|cffffffffUI
|
||||||
## Author: Shagu
|
## Author: Shagu
|
||||||
## Notes: A complete user interface replacement.
|
## Notes: A complete user interface replacement.
|
||||||
## Version: 3.5.0
|
## Version: 3.5.1
|
||||||
## SavedVariables: pfUI_profiles, pfUI_gold
|
## SavedVariables: pfUI_profiles, pfUI_gold
|
||||||
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
## SavedVariablesPerCharacter: pfUI_config, pfUI_init, pfUI_playerDB
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user