Skip to content

Commit

Permalink
turtle-wow: apply chat styles to hc chat
Browse files Browse the repository at this point in the history
  • Loading branch information
shagu committed May 16, 2024
1 parent f5a47b8 commit 57fd9b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions modules/turtle-wow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
table.insert(pfUI.autoshift.shapeshifts, "ability_druid_treeoflife")
end

-- apply chat styles to hardcore chat
if pfUI.chat and pfUI.chat.left then
-- read and parse chat bracket settings
local left = "|r" .. string.sub(C.chat.text.bracket, 1, 1)
local right = string.sub(C.chat.text.bracket, 2, 2) .. "|r"
local default = " " .. "%s" .. "|r:" .. "\32"
_G.CHAT_HARDCORE_GET = left .. "H" .. right .. default
end

-- disable turtle wow's map window implementation
if pfUI.map and not Cartographer and not METAMAP_TITLE then
_G.WorldMapFrame_Maximize()
Expand Down

0 comments on commit 57fd9b5

Please sign in to comment.