From 979953b1414ce7438d46dae325841ba6ed744bbe Mon Sep 17 00:00:00 2001 From: Alar of Runetotem Date: Wed, 3 Aug 2016 23:01:20 +0200 Subject: [PATCH] MP workaround Shows the completion dialog even if MP is installed --- GarrisonCommander.lua | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua index 53b4597..8454d8c 100644 --- a/GarrisonCommander.lua +++ b/GarrisonCommander.lua @@ -1,5 +1,6 @@ local me, ns = ... local toc=select(4,GetBuildInfo()) +local pp=print ns.Configure() local _G=_G local HD=false @@ -14,7 +15,7 @@ local format=format local tostring=tostring local collectgarbage=collectgarbage --@debug@ -local collectgarbage=function() end +--local collectgarbage=function() end --@end-debug@ local GMM=false local MP=false @@ -1576,7 +1577,13 @@ print("Setup") --@end-debug@ SIZEV=GMF:GetHeight() self:CheckMP() - if MP then self:AddToggle("CKMP",true,L["Use GC Interface"],L["Switch between Garrison Commander and Master Plan interface for missions"]) end + if MP then + self:AddToggle("CKMP",true,L["Use GC Interface"],L["Switch between Garrison Commander and Master Plan interface for missions"]) + local t= G.GetCompleteMissions(LE_FOLLOWER_TYPE_GARRISON_6_0) + if #t > 0 then + C_Timer.After(0.4,function() GarrisonMissionFrameMissions.CompleteDialog:Show() end) + end + end self:CheckGMM() GCF=self:CreateHeader(self,"PIN") local tabMC=CreateFrame("CheckButton",nil,GMF,"SpellBookSkillLineTabTemplate") @@ -2325,6 +2332,10 @@ function addon:OpenMissionsTab() lastTab=1 return self:OpenLastTab() end +function addon:OpenProgressTab() + lastTab=3 + return self:OpenLastTab() +end function addon:OpenMissionControlTab() if (not GMF.MissionControlTab:IsVisible()) then lastTab=PanelTemplates_GetSelectedTab(GMF) -- 1.7.9.5