mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 20:50:01 +00:00
setup chat only once per character
This commit is contained in:
+5
-2
@@ -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
|
||||
|
||||
@@ -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:")
|
||||
|
||||
Reference in New Issue
Block a user