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? Quote:
Or what is another method to get the name of this object? |
This is what I have in one of my personal addons.
Code:
for button in QuestFrameGreetingPanel.titleButtonPool:EnumerateActive() do |
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. |
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 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()). |
Thanks, this gives the GreetingText enumeric object well in GossipFrame.
|
All times are GMT -6. The time now is 09:17 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI