• 0

    posted a message on kgPanels Offical Thread
    This is my post at wowinterface.com regarding the sldt-kgpanels-parent-difficulty:


    cormanthor, you are the man!:banana: Your hints got me to the final solution:

    so, as you suggested first of all put in OnLoad
    self:RegisterEvent("PLAYER_ENTERING_WORLD")


    Then put in OnEvent
    SLDT_Mail:SetPoint("CENTER", self, "CENTER")


    in order to align SLDT_Mail centered to the respektiv kgpanel (self).

    In my case the phrase
    SLDT_Mail:SetParent(kgPanels:FetchFrame(mySLDT))


    did nothing at all!
    Only the SetPoint()-phrase, as shown above, put my SLDT-Block right where I wanted it.

    Thanks for your help! Hopefully people with similar problems will find this solution here!


    Quote from cormanthor
    OK, now that I'm firing on all 8 cylinders, try this:
    mySLDT is the name of the kgPanel I want to parent the SLDT frame to.
    SLDT_Mail is the name of the SLDT frame I'm using in the example.

    OnLoad code:
    self:RegisterEvent("PLAYER_ENTERING_WORLD")

    because the SLDT frames aren't created when SLDT fires its "I'm loaded" signal.

    OnEvent code:
    [COLOR="yellow"]SLDT_Mail[/COLOR]:SetParent(kgPanels:FetchFrame([COLOR="Lime"]mySLDT[/COLOR]))

    Now you can use SetPoint() to move it if needed.

    Best of luck!
    Posted in: General AddOns
  • To post a comment, please or register a new account.