Advertisement
Guest User

Untitled

a guest
Mar 28th, 2017
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.48 KB | None | 0 0
  1. diff --git a/modules/chat.lua b/modules/chat.lua
  2. index e7ed11e..7db16f8 100644
  3. --- a/modules/chat.lua
  4. +++ b/modules/chat.lua
  5. @@ -460,6 +460,8 @@ pfUI:RegisterModule("chat", function ()
  6.    for i=1, NUM_CHAT_WINDOWS do
  7.      _G["ChatFrame" .. i .. "UpButton"]:Hide()
  8.      _G["ChatFrame" .. i .. "UpButton"].Show = function() return end
  9. +    _G["ChatFrame" .. i .. "Tab"]:Hide()
  10.      _G["ChatFrame" .. i .. "DownButton"]:Hide()
  11.      _G["ChatFrame" .. i .. "DownButton"].Show = function() return end
  12.      _G["ChatFrame" .. i .. "BottomButton"]:Hide()
  13. @@ -486,6 +488,26 @@ pfUI:RegisterModule("chat", function ()
  14.      -- Detect if mouse is over any chat frames and if so show their tabs, if not hide them
  15.      local chatFrame, chatTab
  16.  
  17. +  local visible
  18. +  for i=1, NUM_CHAT_WINDOWS do
  19. +    if MouseIsOver(pfUI.chat.left, 10, 10, 10, 10) or
  20. +       MouseIsOver(pfUI.chat.right, 10, 10, 10, 10) then
  21. +      _G["ChatFrame" .. i .. "Tab"]:SetAlpha(1)
  22. +      visible = true
  23. +    else
  24. +      _G["ChatFrame" .. i .. "Tab"]:SetAlpha(0)
  25. +    end
  26. +  end
  27. +  if visible then
  28. +    pfUI.chat.left.panelTop:SetAlpha(1)
  29. +    pfUI.chat.right.panelTop:SetAlpha(1)
  30. +  else
  31. +    pfUI.chat.left.panelTop:SetAlpha(0)
  32. +    pfUI.chat.right.panelTop:SetAlpha(0)
  33. +  end
  34. +
  35.      if ( MOVING_CHATFRAME ) then
  36.        -- Set buttons to the left or right side of the frame
  37.        -- If the the side of the buttons changes and the frame is the default frame, then set every docked frames buttons to the same side
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement