View Single Post
03-25-23, 07:28 PM   #4
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
There are a couple different systems that are used for the greeting panel and which one pops up depends on the NPC's implementation. GossipFrame specifically uses the new dataprovider-sourced scrollbox, which is more abstract and a pain to follow than previously.

This might do the trick though.
Code:
for _,frame in GossipFrame.GreetingPanel.ScrollBox:EnumerateFrames() do
Note: Despite employing frame pools, it doesn't implement FramePoolMixin.
Not all ScrollBoxes will have :EnumerateFrames() either. It's an exclusive method of ScrollBoxListMixin. However the equivalent could be achieved with the other types by using ipairs(ScrollBox:GetFrames()).
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
  Reply With Quote