From 28170cc5b7b4a0b9d95cf1a9658f0da3baacc168 Mon Sep 17 00:00:00 2001 From: shagu Date: Fri, 5 Aug 2022 18:01:11 +0200 Subject: [PATCH] config: add config migration for powerbar textures --- api/config.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api/config.lua b/api/config.lua index 9cb78274..68fa95a4 100644 --- a/api/config.lua +++ b/api/config.lua @@ -1140,5 +1140,13 @@ function pfUI:MigrateConfig() end end + -- use same powerbar texture as for health (> 5.2.10) + if checkversion(5, 2, 10) 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].pbartexture = pfUI_config.unitframes[unitframe].bartexture + end + end + pfUI_config.version = pfUI.version.string end