View Single Post
05-16-16, 05:17 AM   #31
ObbleYeah
A Cobalt Mageweaver
AddOn Author - Click to view addons
Join Date: Sep 2008
Posts: 210
I'm probably being an idiot. but say i want to build onto or modify a frame created using blizzards new framepool api — how do i actually reference the individual frames within that?

for examples:
Lua Code:
  1. --
  2.     local reward = function()
  3.         local pool  = QuestInfoFrame.rewardsFrame.followerRewardPool
  4.         local num   = pool:GetNumActive()
  5.         local f     = pool:Acquire()
  6.         for i = 1, num do           -- option 1?
  7.             -- ?
  8.         end
  9.         f.tex = f:CreateTexture()   -- 2?
  10.     end

as far as i understand it blizzard is using #2 in the source but it appears to offer no option for creation, only iterating over existing elements found in the framepool template or mixin.