diff ClassPlanFollowers.lua @ 95:b29b35cb8539

- Fixed quest completion checking and handling - Changed animation method to hopefully stop weird flickering. - Pins are now visible before full reward data is loaded - Filter bar redesigned: - aligned horizontally along the top of the map display - filter buttons display a '+' when there are matches in both current and other zones, and '*' when there only matches in other zones - button tooltips separate local and global quests - button categories are highlighted and labeled when the cursor is over them - Fixed invalid POI targets appearing when the spell targeting cursor is active - ClassOrderPlan can be closed with the game menu button
author Nenue
date Mon, 08 May 2017 22:38:52 -0400
parents 589c444d4837
children a4dfdd4f1cf3
line wrap: on
line diff
--- a/ClassPlanFollowers.lua	Sat Apr 15 11:05:32 2017 -0400
+++ b/ClassPlanFollowers.lua	Mon May 08 22:38:52 2017 -0400
@@ -3,7 +3,7 @@
 local c  = {
 
   templateName = 'ClassPlanShipmentEntry',
-  listKey = {'followers'},
+  listKey = {'followers','troops'},
   listTitle = {'Followers'},
   events = {
     'GARRISON_FOLLOWER_LIST_UPDATE',
@@ -16,6 +16,7 @@
 
 
 function c:OnLoad()
+  print('Followers:OnLoad()')
   self.followerType = 4
   -- follower type, versus garrison_type
 end
@@ -31,10 +32,24 @@
 
   print('|cFF0088FF'..self:GetName()..':GetPlayerData()|r')
   local profileList = self:GetParent().profile.followers
+  local troopList = self:GetParent().profile.troops
+
   local followerInfo = C_Garrison.GetFollowers(self.followerType)
+
+
   if followerInfo then
     table.wipe(profileList)
     for followerID, follower in pairs(followerInfo) do
+      print(FOLLOWER_QUALITY_COLORS[follower.quality].hex, follower.name, follower.isTroop)
+      if follower.isTroop then
+        troopList[followerID] = follower
+      else
+        print(follower.isMaxLevel, follower.xp, follower.levelXP, follower.iLevel)
+
+        profileList[followerID] = follower
+      end
+
+
       profileList[followerID] = follower
     end
   end
@@ -42,6 +57,13 @@
 end
 
 function c:UpdateItems()
+
+  local profileList = self:GetParent().profile.followers
+
+  local troopList = self:GetParent().profile.troops
+
+  
+
 end
 function c:Reanchor()
 end