Fix: quick mission button was disappearing when hovering on it with
Alar of Runetotem [10-26-16 - 11:10]
Fix: quick mission button was disappearing when hovering on it with
mouse
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index edc20ee..0ffcf9b 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -165,6 +165,12 @@ local function ShowTT(this)
GameTooltip:SetText(this.tooltip)
GameTooltip:Show()
end
+local function FadeTT(this)
+ GameTooltip:Fade()
+end
+local function HideTT(this)
+ GameTooltip:Hide()
+end
local GARRISON_DURATION_DAY,GARRISON_DURATION_DAYS=splitFormat(GARRISON_DURATION_DAYS) -- "%d |4day:days;";
local GARRISON_DURATION_DAY_HOURS,GARRISON_DURATION_DAYS_HOURS=splitFormat(GARRISON_DURATION_DAYS_HOURS) -- "%d |4day:days; %d hr";
@@ -1029,9 +1035,9 @@ function addon:ActivateButton(button,OnClick,Tooltiptext,persistent)
button.tooltip=Tooltiptext
button:SetScript("OnEnter",ShowTT)
if persistent then
- button:SetScript("OnLeave",GameTooltip.Hide)
+ button:SetScript("OnLeave",HideTT)
else
- button:SetScript("OnLeave",GameTooltip.Hide)
+ button:SetScript("OnLeave",HideTT)
end
else
button:SetScript("OnEnter",nil)
diff --git a/RelNotes.lua b/RelNotes.lua
index c2117dc..4885e2a 100644
--- a/RelNotes.lua
+++ b/RelNotes.lua
@@ -22,6 +22,12 @@ self:Wiki([[
== Silent mode ==
typing /gac silent in chat will eliminate every chat message from GarrisonCommander
]])
+self:RelNotes(2,15,2,[[
+Fix: Quick mission button was disappearing if not clicked before moving mouse out of it
+]])
+self:RelNotes(2,15,1,[[
+Fix: Now works with 7.1.0
+]])
self:RelNotes(2,15,0,[[
Feature: Right clicking minimap Icon opens Garrison Report
Feature: Switch to bigscreen can now be canceled