1. #1

    Framestack kgPanels question

    I'm trying to get some weakauras to trigger from a kgpanel, like the talent frame thing I've shown in the Show Your UI thread, but this time I'm trying to link the weakauras to a kgpanel panel that is not parented to a Blizzard frame.

    The code I used before on the weakaura was listening for an event from kgPanels, and when it got it that would trigger it to check if PlayerTalentFrame was visible. If it was, the trigger would return true (as such you can use the same event to trigger and untrigger the weakaura). The problem I seem to have now is this: the kgPanel frames all have names like <kgPanel13> and stuff when you look with frame stack, and every time you log in them seem to have got different numbers (which breaks the weakauras trigger code)

    So the question is: does anyone know of a way to assign a more specific name to kgPanel frame?

    (I hope that makes sense)
    Last edited by Kaitain; 2014-09-09 at 04:56 PM.

  2. #2
    Code:
    LibStub("AceAddon-3.0"):GetAddon("kgPanels"):FetchFrame("PANELNAME")

  3. #3
    Quote Originally Posted by Crudor View Post
    Code:
    LibStub("AceAddon-3.0"):GetAddon("kgPanels"):FetchFrame("PANELNAME")
    Works perfectly! thanks :-)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •