Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chat panels #1398

Open
istalker666 opened this issue Jan 10, 2025 · 1 comment
Open

Chat panels #1398

istalker666 opened this issue Jan 10, 2025 · 1 comment

Comments

@istalker666
Copy link

Is there a way to make a keybind to hide and unhide chat panels like in elvui?

@jmgibson1981
Copy link
Contributor

jmgibson1981 commented Feb 1, 2025

I wrote a little function for the chat.lua file in modules that can toggle it between the default 0.8 alpha and 0.

-- show / hide panel toggle

local hide = false

function pfUI_chat_showhide()
  local function toggle_chatshowhide(value)
    if pfUI.chat.left then
      pfUI.chat.left:SetAlpha(value)
    end
    if pfUI.chat.right then
      pfUI.chat.right:SetAlpha(value)
    end
    if value > 0 then
      hide = false
    else
      hide = true
    end
  end

  if not hide then
    toggle_chatshowhide(0)
  else
    toggle_chatshowhide(.8)
  end
end

I can't imagine this would be the ideal way of going about it though. There is probably a better way to embed this in the module. For now you can add this to the bottom of the pfUI/modules/chat.lua and call it as such from a macro. Just would need to be sure to replace it when you update from whatever the current revision is on git until and or if this type of feature gets added properly.

/run pfUI_chat_showhide()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants