diff --git a/modules/macros.lua b/modules/macros.lua index ed6869b..7b2808e 100644 --- a/modules/macros.lua +++ b/modules/macros.lua @@ -21,6 +21,7 @@ function mod:OnInitialize() self:RegisterSlashCommand("Countdown", "cd", "countdown") self:RegisterSlashCommand("RosterCheck", "rc", "rostercheck") self:RegisterSlashCommand("AuctionHouseBuyout", "ahbo") + self:RegisterSlashCommand("EJFix", "ej") self:Hook("QueryAuctionItems", true) end @@ -198,3 +199,14 @@ function mod:QueryAuctionItems() wipe(bought) end +-- Encounter Journal +function mod:EJFix() + for i=1,100 do + local b = _G["EncounterJournalInfoHeader"..i] + if b then + b:SetFrameLevel(b:GetParent():GetFrameLevel()+10) + else + break + end + end +end diff --git a/modules/miscellaneous.lua b/modules/miscellaneous.lua index 8ca0d24..0a556b5 100644 --- a/modules/miscellaneous.lua +++ b/modules/miscellaneous.lua @@ -8,6 +8,7 @@ local defaults = { achieveFilter = true, markMsgFilter = true, officerPhone = true, + clickToPaste = true, } local options = { rollTally = { @@ -50,6 +51,7 @@ function mod:OnInitialize() -- allow max camera zoom ConsoleExec("cameradistancemaxfactor 5") + CompactRaidFrameContainer.Show = CompactRaidFrameContainer.Hide end @@ -334,7 +336,7 @@ end -- Officer Chat Link ----------------------------------------------------------- local SetItemRefHook = SetItemRef function SetItemRef(id, text, button, chatFrame, ...) - if IsControlKeyDown() then + if IsControlKeyDown() and db.clickToPaste then local name = id:match("player:(.-):") local prefix, message for i=1,select("#", chatFrame:GetRegions()) do @@ -352,6 +354,7 @@ function SetItemRef(id, text, button, chatFrame, ...) end if name and message then + message = message:gsub("|c%x%x%x%x%x%x%x%x(.-)|r", "%1") SendChatMessage(("%s: %s"):format(name, message), "officer") return end