Added EJ 'fix', fixed clickToPaste options, fixed raid frame showing repeatedly
This commit is contained in:
parent
b9b3342455
commit
48828d172a
2 changed files with 16 additions and 1 deletions
|
@ -21,6 +21,7 @@ function mod:OnInitialize()
|
||||||
self:RegisterSlashCommand("Countdown", "cd", "countdown")
|
self:RegisterSlashCommand("Countdown", "cd", "countdown")
|
||||||
self:RegisterSlashCommand("RosterCheck", "rc", "rostercheck")
|
self:RegisterSlashCommand("RosterCheck", "rc", "rostercheck")
|
||||||
self:RegisterSlashCommand("AuctionHouseBuyout", "ahbo")
|
self:RegisterSlashCommand("AuctionHouseBuyout", "ahbo")
|
||||||
|
self:RegisterSlashCommand("EJFix", "ej")
|
||||||
self:Hook("QueryAuctionItems", true)
|
self:Hook("QueryAuctionItems", true)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -198,3 +199,14 @@ function mod:QueryAuctionItems()
|
||||||
wipe(bought)
|
wipe(bought)
|
||||||
end
|
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
|
||||||
|
|
|
@ -8,6 +8,7 @@ local defaults = {
|
||||||
achieveFilter = true,
|
achieveFilter = true,
|
||||||
markMsgFilter = true,
|
markMsgFilter = true,
|
||||||
officerPhone = true,
|
officerPhone = true,
|
||||||
|
clickToPaste = true,
|
||||||
}
|
}
|
||||||
local options = {
|
local options = {
|
||||||
rollTally = {
|
rollTally = {
|
||||||
|
@ -50,6 +51,7 @@ function mod:OnInitialize()
|
||||||
|
|
||||||
-- allow max camera zoom
|
-- allow max camera zoom
|
||||||
ConsoleExec("cameradistancemaxfactor 5")
|
ConsoleExec("cameradistancemaxfactor 5")
|
||||||
|
CompactRaidFrameContainer.Show = CompactRaidFrameContainer.Hide
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -334,7 +336,7 @@ end
|
||||||
-- Officer Chat Link -----------------------------------------------------------
|
-- Officer Chat Link -----------------------------------------------------------
|
||||||
local SetItemRefHook = SetItemRef
|
local SetItemRefHook = SetItemRef
|
||||||
function SetItemRef(id, text, button, chatFrame, ...)
|
function SetItemRef(id, text, button, chatFrame, ...)
|
||||||
if IsControlKeyDown() then
|
if IsControlKeyDown() and db.clickToPaste then
|
||||||
local name = id:match("player:(.-):")
|
local name = id:match("player:(.-):")
|
||||||
local prefix, message
|
local prefix, message
|
||||||
for i=1,select("#", chatFrame:GetRegions()) do
|
for i=1,select("#", chatFrame:GetRegions()) do
|
||||||
|
@ -352,6 +354,7 @@ function SetItemRef(id, text, button, chatFrame, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
if name and message then
|
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")
|
SendChatMessage(("%s: %s"):format(name, message), "officer")
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue