From f9e3734605543a2264fe5e15148fe838bfbbad50 Mon Sep 17 00:00:00 2001 From: Alar of Daggerspine Date: Wed, 11 Mar 2015 12:43:08 +0100 Subject: [PATCH] raised quick mission button Signed-off-by: Alar of Daggerspine --- GarrisonCommander.lua | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua index 218efbf..4e0c456 100644 --- a/GarrisonCommander.lua +++ b/GarrisonCommander.lua @@ -1934,8 +1934,8 @@ function addon:StartUp(...) end function addon:RaiseCompleteDialog() local f=GMFMissions.CompleteDialog - if f:GetFrameLevel() < 45 then - f:SetFrameLevel(45) + if f:GetFrameLevel() < 80 then + f:SetFrameLevel(80) end --print("Dialog:",GMFMissions.CompleteDialog:GetFrameLevel()) --C_Timer.After(0.1,function() local f=GMFMissions.CompleteDialog print("Dialog:",f:GetFrameLevel()) if f:GetFrameLevel() < 45 then f:SetFrameLevel(45) end print("Dialog:",f:GetFrameLevel()) end) @@ -1949,7 +1949,7 @@ function addon:MarkAsNew(obj,key,message) f:Show() end end --- probably not really needed, havenr seen yet them firing out of garrison + function addon:PermanentEvents() self:SafeRegisterEvent("GARRISON_MISSION_COMPLETE_RESPONSE") self:SafeRegisterEvent("GARRISON_MISSION_STARTED") @@ -2078,7 +2078,15 @@ end function addon:GetFollowerStatus(followerID,withTime,colored) --C_Garrison.GetFollowerMissionTimeLeftSeconds(follower.followerID) if (not followerID) then return UNAVAILABLE end - local status=G.GetFollowerStatus(followerID) + local rc,status=pcall(G.GetFollowerStatus,followerID) + if (not rc) then +--@debug@ + print("WARNING:",followerID,status) + ns.raised=true +--@end-debug@ + return UNAVAILABLE + end + ns.raised=nil if (status and status== GARRISON_FOLLOWER_ON_MISSION and withTime) then status=G.GetFollowerMissionTimeLeft(followerID) end -- 1.7.9.5