Skip to content

Commit

Permalink
remove all countdown alert
Browse files Browse the repository at this point in the history
  • Loading branch information
tg123 committed May 4, 2020
1 parent 2883d88 commit 9629b4a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions gui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -826,9 +826,9 @@ function GUI:Init()
end

local sendalert = ctx.countdown <= 5
sendalert = sendalert or (ctx.countdown <= 15 and (ctx.countdown % 5 == 0))
sendalert = sendalert or (ctx.countdown <= 30 and (ctx.countdown % 10 == 0))
sendalert = sendalert or (ctx.countdown % 30 == 0)
-- sendalert = sendalert or (ctx.countdown <= 15 and (ctx.countdown % 5 == 0))
-- sendalert = sendalert or (ctx.countdown <= 30 and (ctx.countdown % 10 == 0))
-- sendalert = sendalert or (ctx.countdown % 30 == 0)

if sendalert then
SendRaidMessage(item .. " " .. L["Current price"] .. " >>" .. GetMoneyStringL(ctx.currentprice) .. "<< " .. L["Time left"] .. " " .. (SECOND_ONELETTER_ABBR:format(ctx.countdown)))
Expand Down Expand Up @@ -873,7 +873,11 @@ function GUI:Init()
end

bf:Hide()
bf:SetScript("OnHide", bf.CancelBid)
bf:SetScript("OnHide", function()
if GUI.mainframe:IsShown() then
bf.CancelBid()
end
end)

self.bidframe = bf
end
Expand Down

0 comments on commit 9629b4a

Please sign in to comment.