diff --git a/FollowerCache.lua b/FollowerCache.lua
index abdbc15..6e76778 100644
--- a/FollowerCache.lua
+++ b/FollowerCache.lua
@@ -1,6 +1,8 @@
local me,ns=...
ns.Configure()
+--@debug@
print("loaded")
+--@end-debug@
local addon=addon --#addon
--local holdEvents,releaseEvents=addon.holdEvents,addon.releaseEvents
--upvalue
@@ -43,7 +45,10 @@ function module:OnEvent(event,...)
self.followerCache:Wipe()
self.shipCache:Wipe()
end
- print(event,...)
+
+--@debug@
+print(event,...)
+--@end-debug@
end
function cache:new(type)
local rc=setmetatable({type=type,names={},sorted={},threats={},traits={},cache={}},{__index=self})
@@ -51,7 +56,10 @@ function cache:new(type)
return rc
end
function cache:OnEvent(event,...)
- print(event,...)
+
+--@debug@
+print(event,...)
+--@end-debug@
if event=="GARRISON_FOLLOWER_UPGRADED" or event=="GARRISON_FOLLOWER_XP_CHANGED" then
local followerID=...
if (self.cache[followerID]) then
diff --git a/FollowerPage.lua b/FollowerPage.lua
index b4e388c..ad92a56 100644
--- a/FollowerPage.lua
+++ b/FollowerPage.lua
@@ -29,13 +29,19 @@ function addon:ShowImprovements()
local b=scroller:AddItem(itemID)
b:SetUserData("item",itemID)
b:SetCallback("OnEnter",function(this)
- print("Item:",this:GetUserData("item"))
+
+--@debug@
+print("Item:",this:GetUserData("item"))
+--@end-debug@
GameTooltip:SetOwner(this.frame,"ANCHOR_CURSOR")
GameTooltip:AddLine("Reward")
GameTooltip:SetItemByID(this:GetUserData("item"))
GameTooltip:Show() end)
b:SetCallback("OnLeave",function(this) GameTooltip:Hide() end)
- b:SetCallback("OnClick",function(this) print("Clicckete") end)
+ b:SetCallback("OnClick",function(this)
+--@debug@
+print("Clicckete") end)
+--@end-debug@
end
end
scroller:AddRow("Item Tokens",C.Orange())
@@ -203,7 +209,10 @@ end
--]]
function addon:GarrisonTraitCountersFrame_OnLoad(this, tooltipString)
- print("Load")
+
+--@debug@
+print("Load")
+--@end-debug@
this:ClearAllPoints()
this:SetParent(GarrisonThreatCountersFrame:GetParent())
this:SetPoint("BOTTOMLEFT",185,6)
diff --git a/GarrisonCommander.lua b/GarrisonCommander.lua
index 6ba94bd..5bba5e8 100644
--- a/GarrisonCommander.lua
+++ b/GarrisonCommander.lua
@@ -364,7 +364,10 @@ function addon:ApplyMSORT(value)
if (type(func)=="function") then
Garrison_SortMissions=self[value]
else
- print("Could not found ",value," in addon")
+
+--@debug@
+print("Could not found ",value," in addon")
+--@end-debug@
Garrison_SortMissions=origGarrison_SortMissions
end
self:RefreshMissions()
@@ -549,7 +552,10 @@ function addon:GetCounterBias(missionID,threat)
local follower=data[index[i]]
if ((tonumber(follower.bias) or -1) > bias) then
if (tContains(members,follower.followerID)) then
- if (dbg) then print(" Choosen",self:GetFollowerData(follower.followerID,'fullname')) end
+ if (dbg) then
+--@debug@
+print(" Choosen",self:GetFollowerData(follower.followerID,'fullname')) end
+--@end-debug@
bias=follower.bias
who=follower.name
end
@@ -1462,7 +1468,10 @@ function addon.ClonedGarrisonMissionMechanic_OnEnter(this)
local t=G.GetFollowersTraitsForMission(this.missionID)
for followerID,k in pairs(t) do
for i=1,#k do
- print(k[i].icon)
+
+--@debug@
+print(k[i].icon)
+--@end-debug@
if k[i].icon==this.texture then
tip:AddDoubleLine(addon:GetFollowerData(followerID,'fullname'),this.Name)
end
@@ -1490,7 +1499,10 @@ do
local ml=nil
local tContains=tContains
local function MissionOnClick(this,...)
- print(this.frame,this.frame:GetName())
+
+--@debug@
+print(this.frame,this.frame:GetName())
+--@end-debug@
GMF:OnClickMission(this.frame.info)
if (PanelTemplates_GetSelectedTab(GMF) ~= 1) then
addon:OpenMissionsTab()
@@ -1779,13 +1791,19 @@ function addon:SafeHookScript(frame,method,handler,hookType)
if not handler then
handler='Script'..name..method
elseif type(handler)=="boolean" then
- handler=function(...) print(name,method,...) end
+ handler=function(...)
+--@debug@
+print(name,method,...) end
+--@end-debug@
end
self:checkHandler(handler)
if hookType and type(hookType)=="boolean" then hookType="post" end
--This allow to change a method, for example to substitute an one time init with the standard routine
if (self:IsHooked(frame,method)) then self:Unhook(frame,method) end
- print(hookType or "","Hooked Script",method,"on frame",name,"to",handler)
+
+--@debug@
+print(hookType or "","Hooked Script",method,"on frame",name,"to",handler)
+--@end-debug@
if hookType=="post" or hookType=="secure" then
self:SecureHookScript(frame,method,handler)
elseif (hookType=="raw") then
@@ -1810,11 +1828,17 @@ function addon:GetFollowerTexture(followerID,followerType)
end
else
local rc,texPrefix=pcall(self.GetAnyData,self,followerType,followerID,"texPrefix")
- print(rc,texPrefix)
+
+--@debug@
+print(rc,texPrefix)
+--@end-debug@
if rc then
if texPrefix then
shipconv.Portrait:SetAtlas(texPrefix.."-List")
- print(shipconv.Portrait:GetTexture())
+
+--@debug@
+print(shipconv.Portrait:GetTexture())
+--@end-debug@
return shipconv.Portrait:GetTexture()
end
end
@@ -1933,7 +1957,10 @@ function addon:FillMissionPage(missionInfo)
end
end
else
- print("No martini no party")
+
+--@debug@
+print("No martini no party")
+--@end-debug@
end
main:UpdateMissionParty(main.MissionTab.MissionPage.Followers)
main:UpdateMissionData(main.MissionTab.MissionPage)
@@ -2035,7 +2062,10 @@ function addon:RenderFollowerButton(frame,followerID,missionID,b,t)
frame.PortraitFrame.Portrait:Show()
local info=self:GetFollowerData(followerID)
if (not info) then
- print("Unable to find follower",followerID)
+
+--@debug@
+print("Unable to find follower",followerID)
+--@end-debug@
return
end
frame.info=info
@@ -2303,7 +2333,10 @@ function addon:OnClick_GarrisonMissionFrame_MissionComplete_NextMissionButton(th
end
function addon:OnClick_GarrisonMissionButton(tab,button)
local frame = tab:GetParent():GetParent():GetParent():GetParent():GetParent();
- print(frame:GetName())
+
+--@debug@
+print(frame:GetName())
+--@end-debug@
lastTab=1
if (GMF.MissionTab.MissionList.showInProgress) then
return
@@ -2873,7 +2906,10 @@ function addon:AddFollowersToButton(button,mission,missionID,bigscreen)
local missionInfo=button.info
local missionID=missionInfo.missionID
local mission=missionInfo
- if not mission then print("Non ho la missione") return end -- something went wrong while refreshing
+ if not mission then
+--@debug@
+print("Non ho la missione") return end -- something went wrong while refreshing
+--@end-debug@
if (not bigscreen) then
local index=mission.numFollowers+mission.numRewards-3
local position=(index * -65) - 130
@@ -2907,7 +2943,10 @@ function addon:AddFollowersToButton(button,mission,missionID,bigscreen)
end
-- Switchs between active and availabla missions depending on tab object
function over.GarrisonMissionList_SetTab(...)
- print("Click su",...)
+
+--@debug@
+print("Click su",...)
+--@end-debug@
-- I dont actually care wich page we are shoing, I know I must redraw missions
orig.GarrisonMissionList_SetTab(...)
addon:RefreshFollowerStatus()
@@ -2917,11 +2956,17 @@ function over.GarrisonMissionList_SetTab(...)
if (HD) then addon:ResetSinks() end
end
function addon:HookedClickOnTabs(tab)
- print(tab)
+
+--@debug@
+print(tab)
+--@end-debug@
lastTab=tab
end
function over.GarrisonMissionFrame_SelectTab(self,tab,...)
- print(tab)
+
+--@debug@
+print(tab)
+--@end-debug@
addon:RefreshFollowerStatus()
for i=1,#GMFMissionListButtons do
GMFMissionListButtons.lastMissionID=nil
diff --git a/Init.lua b/Init.lua
index 2889de0..13d6134 100644
--- a/Init.lua
+++ b/Init.lua
@@ -15,7 +15,7 @@ local tonumber=tonumber
local type=type
--@debug@
LoadAddOn("Blizzard_DebugTools")
-print(LoadAddOn("LibDebug"))
+LoadAddOn("LibDebug")
if LibDebug then LibDebug() ns.print=print else ns.print=function() end end
--@end-debug@
--[===[@non-debug@
@@ -31,10 +31,14 @@ ns.L=ns.addon:GetLocale()
ns.G=C_Garrison
ns.GMF=_G.GarrisonMissionFrame
if not ns.GMF then
+--@debug@
print("GarrisonCommander is being loaded before Blizzard_GarrisonUI is available")
print(GetTime())
+--@end-debug@
LoadAddOn("Blizzard_GarrisonUI")
+--@debug@
print(GetTime())
+--@end-debug@
ns.GMF=_G.GarrisonMissionFrame
end
if not ns.GMF then error("GarrisonCommander is being loaded before Blizzard_GarrisonUI is available") end
diff --git a/MatchMaker.lua b/MatchMaker.lua
index af43b9f..e25b492 100644
--- a/MatchMaker.lua
+++ b/MatchMaker.lua
@@ -107,7 +107,10 @@ local function CreateFilter(missionClass)
return filterdata
]]
code = code:gsub("TEST", " filters." ..missionClass .."(followerID,missionID)")
- print("Compiling ",missionClass,"filterOut")
+
+--@debug@
+print("Compiling ",missionClass,"filterOut")
+--@end-debug@
return assert(loadstring(code, "filterOut for " .. missionClass))(filters,print,pairs)
end
@@ -273,7 +276,10 @@ function addon:MCMatchMaker(missionID,party,skipEpic,cap)
if (not party) then party=addon:GetParty(missionID) end
useCap=true
currentCap=cap
- print("Using cap data:",useCap,currentCap)
+
+--@debug@
+print("Using cap data:",useCap,currentCap)
+--@end-debug@
MatchMaker(self,mission,party,false)
if (skipEpic) then
if (self:GetMissionData(missionID,'class')=='xp') then
diff --git a/MissionCache.lua b/MissionCache.lua
index 1f93851..3b561f6 100644
--- a/MissionCache.lua
+++ b/MissionCache.lua
@@ -34,7 +34,10 @@ function module:OnInitialized()
addon.db:RegisterNamespace('missionscache',{global={['*']={rewards={},followers={},_filled=0}}})
cache=addon.db:GetNamespace('missionscache').global
--wipe(cache)
- print("OnInitialized")
+
+--@debug@
+print("OnInitialized")
+--@end-debug@
end
@@ -51,7 +54,10 @@ local function deepCopy(original,copy)
return copy
end
local function flatCopy(original,copy)
- print("Destination",copy,"Original",original)
+
+--@debug@
+print("Destination",copy,"Original",original)
+--@end-debug@
for k, v in pairs(original) do
-- as before, but if we find a table, make sure we copy that too
if type(v) ~= 'table' then
@@ -80,7 +86,10 @@ local function load(t,base)
cache[missionID].followers[f]=mission.followers[f]
end
end
- print("Refreshed",mission.name,"followers",mission.followers)
+
+--@debug@
+print("Refreshed",mission.name,"followers",mission.followers)
+--@end-debug@
else
wipe(mission.followers)
end
@@ -175,7 +184,10 @@ function module:AddExtraData(mission)
mission.rush=mission.rush+v.quantity
elseif itemName and (not v.quantity or v.quantity==1) and not v.followerXP then
itemLevel=addon:GetTrueLevel(v.itemID,itemLevel)
- if mission.missionID==364 then print(4,itemLevel) end
+ if mission.missionID==364 then
+--@debug@
+print(4,itemLevel) end
+--@end-debug@
if (addon:IsFollowerUpgrade(v.itemID)) then
mission.followerUpgrade=itemRarity
elseif itemLevel > 500 and itemMinLevel >=90 then
@@ -235,7 +247,10 @@ function module:GetMissionIterator(followerType)
else
list=GMFMissions.availableMissions
end
- print("Iterator called, list is",list)
+
+--@debug@
+print("Iterator called, list is",list)
+--@end-debug@
return function(sorted,i)
i=i+1
if type(sorted[i])=="table" then
@@ -303,7 +318,10 @@ function addon:GetMissionData(missionID,key,default)
mission=G.GetMissionInfo(missionID)
end
if not mission then
- print("Could not find info for mission",missionID,G.GetMissionName(missionID))
+
+--@debug@
+print("Could not find info for mission",missionID,G.GetMissionName(missionID))
+--@end-debug@
return default
end
if (key==nil) then
@@ -376,7 +394,10 @@ function addon:AddExtraData(mission)
mission.rush=mission.rush+v.quantity
elseif itemName and (not v.quantity or v.quantity==1) and not v.followerXP then
itemLevel=addon:GetTrueLevel(v.itemID,itemLevel)
- if mission.missionID==364 then print(4,itemLevel) end
+ if mission.missionID==364 then
+--@debug@
+print(4,itemLevel) end
+--@end-debug@
if (addon:IsFollowerUpgrade(v.itemID)) then
mission.followerUpgrade=itemRarity
elseif itemLevel > 500 and itemMinLevel >=90 then
diff --git a/MissionCompletion.lua b/MissionCompletion.lua
index 1ff8871..8b10f6c 100644
--- a/MissionCompletion.lua
+++ b/MissionCompletion.lua
@@ -62,9 +62,9 @@ local function startTimer(delay,event,...)
event=event or "LOOP"
stopTimer()
timer=module:ScheduleRepeatingTimer("MissionAutoComplete",delay,event,...)
- --@alpha@
+ --@debug@
print("Timer rearmed for",event,delay)
- --@end-alpha@
+ --@end-debug@
end
function module:MissionsCleanup()
local f=followerType==LE_FOLLOWER_TYPE_GARRISON_6_0 and GMF or GSF
@@ -97,7 +97,10 @@ function module:CloseReport()
if report then pcall(report.Close,report) report=nil end
end
function module:MissionComplete(this,button)
- print(this,button,this.missionType)
+
+--@debug@
+print(this,button,this.missionType)
+--@end-debug@
followerType=this.missionType
missions=G.GetCompleteMissions(followerType)
if (missions and #missions > 0) then
@@ -144,9 +147,9 @@ end
function module:MissionAutoComplete(event,ID,arg1,arg2,arg3,arg4)
-- C_Garrison.MarkMissionComplete Mark mission as complete and prepare it for bonus roll, da chiamare solo in caso di successo
-- C_Garrison.MissionBonusRoll
---@alpha@
+--@debug@
--print("evt",event,ID,arg1 or'',arg2 or '',arg3 or '')
---@end-alpha@
+--@end-debug@
if event=="LOOT" then
return self:MissionsPrintResults()
end
@@ -201,15 +204,15 @@ function module:MissionAutoComplete(event,ID,arg1,arg2,arg3,arg4)
report:AddMissionButton(currentMission,addon:GetParty(currentMission.missionID),currentMission.successChance)
end
if (step==0) then
- --@alpha@
+ --@debug@
print("Fired mission complete for",currentMission.missionID)
- --@end-alpha@
+ --@end-debug@
G.MarkMissionComplete(currentMission.missionID)
startTimer(2)
elseif (step==1) then
- --@alpha@
+ --@debug@
print("Fired bonus roll complete for",currentMission.missionID)
- --@end-alpha@
+ --@end-debug@
G.MissionBonusRoll(currentMission.missionID)
startTimer(2)
elseif (step>=2) then
diff --git a/MissionControl.lua b/MissionControl.lua
index 6238a3b..89ff634 100644
--- a/MissionControl.lua
+++ b/MissionControl.lua
@@ -49,18 +49,30 @@ function module:GMCCreateMissionList(workList)
local discarded=false
local class=self:GetMissionData(missionID,"class")
repeat
- print("|cffff0000",'Examing',missionID,self:GetMissionData(missionID,"name"),class,"|r")
+
+--@debug@
+print("|cffff0000",'Examing',missionID,self:GetMissionData(missionID,"name"),class,"|r")
+--@end-debug@
local durationSeconds=self:GetMissionData(missionID,'durationSeconds')
if (durationSeconds > settings.maxDuration * 3600 or durationSeconds < settings.minDuration * 3600) then
- print(missionID,"discarded due to len",durationSeconds /3600)
+
+--@debug@
+print(missionID,"discarded due to len",durationSeconds /3600)
+--@end-debug@
break
end -- Mission too long, out of here
if (self:GetMissionData(missionID,'isRare') and settings.skipRare) then
- print(missionID,"discarded due to rarity")
+
+--@debug@
+print(missionID,"discarded due to rarity")
+--@end-debug@
break
end
if (not ar[class]) then
- print(missionID,"discarded due to class == ", class)
+
+--@debug@
+print(missionID,"discarded due to class == ", class)
+--@end-debug@
discarded=true
break
end
@@ -86,7 +98,10 @@ end
--@param #integer missionID Optional, to run a single mission
--@param #bool start Optional, tells that follower already are on mission and that we need just to start it
function module:GMCRunMission(missionID,start)
- print("Asked to start mission",missionID)
+
+--@debug@
+print("Asked to start mission",missionID)
+--@end-debug@
if (start) then
G.StartMission(missionID)
PlaySound("UI_Garrison_CommandTable_MissionStart")
@@ -94,7 +109,10 @@ function module:GMCRunMission(missionID,start)
end
for i=1,#GMC.ml.Parties do
local party=GMC.ml.Parties[i]
- print("Checking",party.missionID)
+
+--@debug@
+print("Checking",party.missionID)
+--@end-debug@
if (missionID and party.missionID==missionID or not missionID) then
GMC.ml.widget:RemoveChild(party.missionID)
GMC.ml.widget:DoLayout()
@@ -156,7 +174,10 @@ do
minimumChance=tonumber(settings.rewardChance[class]) or 100
end
local party={members={},perc=0}
- print (" Requested",class,";",minimumChance,"Mission",party.perc,party.full,settings)
+
+--@debug@
+print(" Requested",class,";",minimumChance,"Mission",party.perc,party.full,settings)
+--@end-debug@
self:MCMatchMaker(missionID,party,settings.skipEpic,minimumChance)
if ( party.full and party.perc >= minimumChance) then
--print(" Mission accepted")
@@ -202,7 +223,10 @@ function module:GMC_OnClick_Run(this,button)
end
end
function module:GMC_OnClick_Start(this,button)
- print(C("-------------------------------------------------","Yellow"))
+
+--@debug@
+print(C("-------------------------------------------------","Yellow"))
+--@end-debug@
GMC.ml.widget:ClearChildren()
if (self:GetTotFollowers(AVAILABLE) == 0) then
GMC.ml.widget:SetTitle("All followers are busy")
@@ -297,19 +321,28 @@ local function drawItemButtons()
frame:RegisterForDrag("LeftButton")
frame:SetMovable(true)
frame:SetScript("OnDragStart",function(this,button)
- print("Start",this:GetID(),this.key)
+
+--@debug@
+print("Start",this:GetID(),this.key)
+--@end-debug@
this:StartMoving()
this.oldframestrata=this:GetFrameStrata()
this:SetFrameStrata("FULLSCREEN_DIALOG")
end)
frame:SetScript("OnDragStop",function(this,button)
this:StopMovingOrSizing()
- print("Stopped",this:GetID(),this.key)
+
+--@debug@
+print("Stopped",this:GetID(),this.key)
+--@end-debug@
this:SetFrameStrata(this.oldframestrata)
end)
frame:SetScript("OnReceiveDrag",function(this)
- print("Receive",this:GetID(),this.key)
+
+--@debug@
+print("Receive",this:GetID(),this.key)
+--@end-debug@
local from=this:GetID()
local to
local x,y=this:GetCenter()
@@ -323,7 +356,10 @@ local function drawItemButtons()
end
end
if (to) then
- print("from:",from,"to:",to)
+
+--@debug@
+print("from:",from,"to:",to)
+--@end-debug@
local appo=tremove(tOrder,from)
tinsert(tOrder,to,appo)
end
diff --git a/PartyCache.lua b/PartyCache.lua
index 4033a6d..ddd864b 100644
--- a/PartyCache.lua
+++ b/PartyCache.lua
@@ -96,11 +96,13 @@ function party:IsFull()
end
function party:Dump()
+--@debug@
print("Dumping party for mission",ID)
for i=1,#members do
print(addon:GetFollowerData(members[i],'fullname'),G.GetFollowerStatus(members[i] or 1))
end
print(G.GetPartyMissionInfo(ID))
+--@end-debug@
end
function party:AddFollower(followerID)
@@ -143,10 +145,12 @@ local function fsort(a,b)
if tonumber(rank1) and tonumber(rank2) then
return rank1 < rank2
else
+--@debug@
print(a,rank1)
print(b,rank2)
print(G.GetFollowerName(a))
print(G.GetFollowerName(b))
+--@end-debug@
return 0
end
end
@@ -205,7 +209,10 @@ end
function addon:GetParty(missionID,key,default)
if not missionID then return parties end
local party=parties[missionID]
- if not party then print(GetTime(),missionID,G.GetMissionName(missionID),"Empty") end
+ if not party then
+--@debug@
+print(GetTime(),missionID,G.GetMissionName(missionID),"Empty") end
+--@end-debug@
if not party then return default end
if #party.members==0 and G.GetNumFollowersOnMission(missionID)>0 then
if not party.perc or party.perc < 1 then
@@ -214,7 +221,10 @@ function addon:GetParty(missionID,key,default)
party.full=true
--Running Mission, taking followers from mission data
local followers=self:GetMissionData(missionID,'followers')
- print(followers)
+
+--@debug@
+print(followers)
+--@end-debug@
--addPartyMissionInfo(party,missionID)
if followers then
for i=1,#followers do
diff --git a/ShipYard.lua b/ShipYard.lua
index f4058cd..14a97f9 100644
--- a/ShipYard.lua
+++ b/ShipYard.lua
@@ -20,10 +20,16 @@ local GameTooltip=GameTooltip
local GarrisonShipyardMapMissionTooltip=GarrisonShipyardMapMissionTooltip
function sprint(nome,this,...)
- print(nome,this:GetName(),...)
+
+--@debug@
+print(nome,this:GetName(),...)
+--@end-debug@
end
function module:Test()
- print("test")
+
+--@debug@
+print("test")
+--@end-debug@
end
function module:OnInitialize()
self:SafeSecureHook("GarrisonFollowerButton_UpdateCounters")
@@ -31,7 +37,10 @@ function module:OnInitialize()
self:SafeSecureHook("GarrisonShipyardMapMission_OnEnter")
self:SafeSecureHook("GarrisonShipyardMapMission_OnLeave")
local ref=GSFMissions.CompleteDialog.BorderFrame.ViewButton
- print(ref)
+
+--@debug@
+print(ref)
+--@end-debug@
local bt = CreateFrame('BUTTON','GCQuickShipMissionCompletionButton', ref, 'UIPanelButtonTemplate')
bt.missionType=LE_FOLLOWER_TYPE_SHIPYARD_6_2
bt:SetWidth(300)
@@ -57,7 +66,10 @@ local i=0
function module:HookedGarrisonShipyardMap_SetupBonus(missionList,frame,mission)
if not GSF:IsShown() then return end
- print(frame:GetWidth(),mission)
+
+--@debug@
+print(frame:GetWidth(),mission)
+--@end-debug@
addon:AddExtraData(mission)
local perc=addon:MatchMaker(mission)
local addendum=frame.GcAddendum
@@ -118,7 +130,10 @@ end
function module:Setup(this,...)
- print("Doing one time initialization for",this:GetName(),...)
+
+--@debug@
+print("Doing one time initialization for",this:GetName(),...)
+--@end-debug@
self:SafeHookScript(GSF,"OnShow","OnShow",true)
GSF:EnableMouse(true)
GSF:SetMovable(true)
@@ -127,10 +142,16 @@ function module:Setup(this,...)
GSF:SetScript("OnDragStop",function(frame) frame:StopMovingOrSizing() end)
end
function module:OnShow()
- print("Doing all time initialization")
+
+--@debug@
+print("Doing all time initialization")
+--@end-debug@
end
function module:HookedGarrisonShipyardMapMission_OnLeave()
- print("OnLeave")
+
+--@debug@
+print("OnLeave")
+--@end-debug@
GameTooltip:Hide()
end
function module:HookedGarrisonShipyardMapMission_OnEnter(frame)
@@ -149,7 +170,9 @@ function module:HookedGarrisonShipyardMapMission_OnEnter(frame)
end
end
function module:OpenLastTab()
+--@debug@
print("Should restore tab")
+--@end-debug@
end
--[[ Follower
displayHeight = 0.25
diff --git a/Widgets.lua b/Widgets.lua
index 6f404fd..d1a3dd6 100644
--- a/Widgets.lua
+++ b/Widgets.lua
@@ -109,7 +109,10 @@ local function GMCList()
end
function m:AddFollower(follower,xp,levelup)
- print(follower)
+
+--@debug@
+print(follower)
+--@end-debug@
local followerID=follower.followerID
local followerType=follower.followerTypeID
if follower.maxed and not levelup then