setup chat only once per character

This commit is contained in:
shagu
2016-09-18 22:36:19 +02:00
parent b610f31c9f
commit 119ca09c97
3 changed files with 10 additions and 2 deletions
+5 -2
View File
@@ -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
+4
View File
@@ -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:")
+1
View File
@@ -4,6 +4,7 @@
## Notes: A complete user interface replacement.
## Version: 0.1
## SavedVariables: pfUI_config, pfUI_playerDB
## SavedVariablesPerCharacter: pfUI_init
# main
pfUI.lua