chat: add option for sticky chat

This commit is contained in:
shagu
2017-01-15 20:05:44 +01:00
parent af0a8b0e8f
commit 1e4ff722e5
3 changed files with 9 additions and 0 deletions
+7
View File
@@ -216,6 +216,13 @@ pfUI:RegisterModule("chat", function ()
function pfUI.chat:RefreshChat()
local panelheight = pfUI_config.global.font_size+default_border*5
if pfUI_config.chat.global.sticky == "1" then
ChatTypeInfo.WHISPER.sticky = 1
ChatTypeInfo.OFFICER.sticky = 1
ChatTypeInfo.RAID_WARNING.sticky = 1
ChatTypeInfo.CHANNEL.sticky = 1
end
for i,v in ipairs({ChatFrameMenuButton:GetRegions()}) do
v:SetAllPoints(ChatFrameMenuButton)
local _, class = UnitClass("player")