From 6a751c39adf8e04a43015ebc7f4c2be8ddf9932a Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Wed, 26 Oct 2016 13:10:32 +0200 Subject: [PATCH] Fix: quick mission button was disappearing when hovering on it with mouse --- GarrisonCommander.lua | 10 ++++++++-- RelNotes.lua | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) 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 -- 1.7.9.5