diff --git a/Broker.lua b/Broker.lua
index 6fada1a..736a7fe 100644
--- a/Broker.lua
+++ b/Broker.lua
@@ -48,6 +48,7 @@ local data = {
local clickFunctions = {
ctrl = {
LeftButton = function() KT:Announce("GROUP") end, -- Announce to group/say
+ MiddleButton = function() KT.Immediate:Toggle() end, -- Show the immediate frame
RightButton = function() KT:Announce("GUILD") end -- Announce to guild
},
none = {
@@ -92,6 +93,7 @@ function obj:OnTooltipShow()
self:AddDoubleLine("Middle Click", "Toggle short/long text", 0, 1, 0, 0, 1, 0)
self:AddDoubleLine("Right Click", "Reset session statistics", 0, 1, 0, 0, 1, 0)
self:AddDoubleLine("Ctrl + Left Click", "Announce to group/say", 0, 1, 0, 0, 1, 0)
+ self:AddDoubleLine("Ctrl + Middle Click", "Toggle immediate frame", 0, 1, 0, 0, 1, 0)
self:AddDoubleLine("Ctrl + Right Click", "Announce to guild", 0, 1, 0, 0, 1, 0)
end
diff --git a/ImmediateFrame.lua b/ImmediateFrame.lua
index 621680d..72b63d4 100644
--- a/ImmediateFrame.lua
+++ b/ImmediateFrame.lua
@@ -105,6 +105,14 @@ function I:Hide()
self.Active = false
end
+function I:Toggle()
+ if frame and frame:IsShown() then
+ self:Hide()
+ else
+ self:Show()
+ end
+end
+
function I:AddKill()
self.Kills = self.Kills + 1
frame.killCount:SetText(tostring(self.Kills))
diff --git a/README.md b/README.md
index fbcbe3e..d2c1fa1 100644
--- a/README.md
+++ b/README.md
@@ -30,6 +30,11 @@ To change the threshold, use the command /kt threshold \<threshold\>, where \<th
E.g: If you set the threshold to 100, then after you've killed a mob 100 times, it will notify you. And continue to notify you for every 100th kill.
+Immediate Frame
+---------------
+
+By using the command /kt immediate (or /kt i for short), you will get a small frame that shows you how many kills you've made since running the command. This can be useful for times when you need to kill a certain number of mobs, but do not wish to reset your session statistics. Simply run /kt i and it will track how many kills you do until you close it, reopening the frame will reset the count.
+
Feedback
--------