comparison ClassPlanShipments.lua @ 102:4d1520186ea4

7.2.5 changes - Fixed order hall panel not initializing on fresh install
author Nenue
date Thu, 25 May 2017 17:24:00 -0400
parents b29b35cb8539
children 1197c8825eda
comparison
equal deleted inserted replaced
101:b68af1e44bdc 102:4d1520186ea4
105 for i = 1, #looseShipments do 105 for i = 1, #looseShipments do
106 local name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString = CG_GetLandingPageShipmentInfoByContainerID(looseShipments[i]); 106 local name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString = CG_GetLandingPageShipmentInfoByContainerID(looseShipments[i]);
107 AddShipmentInfo(AK_NOTES, name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString) 107 AddShipmentInfo(AK_NOTES, name, texture, shipmentCapacity, shipmentsReady, shipmentsTotal, creationTime, duration, timeleftString)
108 end 108 end
109 109
110 local talentTrees = CG_GetTalentTrees(garrisonType, select(3, UnitClass("player"))); 110 local talentTrees = C_Garrison.GetTalentTreeIDsByClassID(garrisonType, select(3, UnitClass("player")));
111 -- this is a talent that has completed, but has not been seen in the talent UI yet. 111 -- this is a talent that has completed, but has not been seen in the talent UI yet.
112 local completeTalentID = CG_GetCompleteTalent(garrisonType); 112 local completeTalentID = CG_GetCompleteTalent(garrisonType);
113 --print('Talents:') 113 print('Talents:')
114 if (talentTrees) then 114 if (talentTrees) then
115 for treeIndex, tree in ipairs(talentTrees) do 115 for treeIndex, treeID in ipairs(talentTrees) do
116 local _, _, tree = C_Garrison.GetTalentTreeInfoForID(garrisonType, treeID);
116 for talentIndex, talent in ipairs(tree) do 117 for talentIndex, talent in ipairs(tree) do
117 local showTalent = false; 118 local showTalent = false;
118 if (talent.isBeingResearched) or (talent.id == completeTalentID) then 119 if (talent.isBeingResearched) or (talent.id == completeTalentID) then
119 AddShipmentInfo(OH_TALENT, talent.name, talent.icon, 1, (talent.isBeingResearched and 0 or 1), 1, talent.researchStartTime, talent.researchDuration, talent.timeleftString) 120 AddShipmentInfo(OH_TALENT, talent.name, talent.icon, 1, (talent.isBeingResearched and 0 or 1), 1, talent.researchStartTime, talent.researchDuration, talent.timeleftString)
120 end 121 end