View Single Post
08-08-14, 03:31 PM   #2
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 210
dammit I think I just figured it out. This bugs me for a week then I post in here and fix it in 5 minutes. Always the same

Lua Code:
  1. --
  2.      -- mission list reward icons
  3.      -- ...maybe WORKING CORRECTLY?
  4.      local ml = GarrisonMissionFrame.MissionTab.MissionList
  5.      local buttons = ml.listScroll.buttons    
  6.      local missions = ml.showInProgress and ml.inProgressMissions or ml.availableMissions
  7.      local numMissions = #missions
  8.            
  9.     for i = 1, numMissions do
  10.         local button = buttons[i]
  11.    
  12.         for k = 1, #button.Rewards do
  13.             button.Rewards[k]:DoStuff(stuff)
  14.         end
  15.     end