Thread Tools Display Modes
03-20-23, 02:54 AM   #1
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
GossipFrame - GreetingText - EnumerateAtcive()

I have an object GreetingText in GossipFrame as Enumerate element.
In the photo it is an GossipFrame.GreetingPanel.ScrollBox.ScrollTarget.9bf0def0.GreetingText object.
How do I use the command below to access them?

for greetingText in GossipFrame.GreetingPanel.ScrollBox.ScrollTarget.XXXFramePool:EnumerateActive() do


Or what is another method to get the name of this object?
  Reply With Quote
03-20-23, 12:34 PM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,313
This is what I have in one of my personal addons.
Code:
for button in QuestFrameGreetingPanel.titleButtonPool:EnumerateActive() do
__________________
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
03-25-23, 04:40 AM   #3
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
Thank you SDPhantom, but this is a call for QuestFrame.
In GossipFrame this unfortunately doesn't work.
So there must be some other name for these objects.
  Reply With Quote
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,313
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
03-27-23, 06:14 AM   #5
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
Thanks, this gives the GreetingText enumeric object well in GossipFrame.
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » GossipFrame - GreetingText - EnumerateAtcive()

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off