diff --git a/modules/chat.lua b/modules/chat.lua index 613d0e84..7439995e 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -54,8 +54,11 @@ pfUI:RegisterModule("chat", function () v:SetVertexColor(RAID_CLASS_COLORS[class].r + .3 * .5, RAID_CLASS_COLORS[class].g +.3 * .5, RAID_CLASS_COLORS[class].b +.3 * .5,1) end - pfUI.chat.SetupPositions() - pfUI.chat.SetupChannels() + if not pfUI_init["chat"] then + pfUI.chat.SetupPositions() + pfUI.chat.SetupChannels() + pfUI_init["chat"] = true + end for i=1, NUM_CHAT_WINDOWS do for j,v in ipairs({getglobal("ChatFrame" .. i .. "Tab"):GetRegions()}) do diff --git a/pfUI.lua b/pfUI.lua index 8bc67170..08cb52d3 100644 --- a/pfUI.lua +++ b/pfUI.lua @@ -30,6 +30,10 @@ pfUI:SetScript("OnEvent", function() pfUI.cache["locale"] = "enUS" end + if not pfUI_init then + pfUI_init = {} + end + pfUI:LoadConfig() if arg1 == "pfUI" then pfUI:Debug("pfUI module loader:") diff --git a/pfUI.toc b/pfUI.toc index 22bee737..2cad2cc7 100644 --- a/pfUI.toc +++ b/pfUI.toc @@ -4,6 +4,7 @@ ## Notes: A complete user interface replacement. ## Version: 0.1 ## SavedVariables: pfUI_config, pfUI_playerDB +## SavedVariablesPerCharacter: pfUI_init # main pfUI.lua