Not signed in (Sign In)
    • CommentAuthorlilsparky
    • CommentTimeMay 27th 2008 edited
     
    what is the proper way to do fire off a manual call to enhtooltip?

    for example, i want a tooltip for a particular item and i want it to get the enhtooltip experience if enhtooltip is installed. what i've been doing is something like this:


    GameTooltip:SetHyperlink("item:"..itemID)

    if EnhTooltip and EnhTooltip.TooltipCall then
    local name, link, quality = GetItemInfo("item:"..itemID)
    quantity = numMade
    EnhTooltip.TooltipCall(GameTooltip, name, link, quality, quantity)
    end


    which works great. only, if i use a non-gametooltip with specific placement, it seems the enhtooltip call moves the tooltip. for example:


    tip:SetOwner(frameParent, "ANCHOR_NONE")
    tip:SetPoint("TOPRIGHT",frameParent,"TOPLEFT", -10, 0)

    tip:SetHyperlink(link)

    tip:Show()


    if EnhTooltip and EnhTooltip.TooltipCall then
    EnhTooltip.TooltipCall(tip, name, link, quality, quantity)
    end


    if i don't call enhtooltip.tooltipcall then the frame is positioned where i want it (it's top right cornere is locked to the topleft corner of my desired parent)

    if do call enhtooltip, then it moves it down so that the topright corner of the tip is at bottom left corner of the desired parent frame. the issue might be related to the setparent call having some shortcuts for positioning which sadly don't fit my desired layout, so i use a hardcoded setpoint call. it seems the enhtooltip call must resize the tooltip frame and in doing so, it seems to lose the positioning i defined and it ends up in a "default"ish position.

    i tried rearraging the calls, but doing a setpoint after the enhtooltip call to manually move the tooltip resulted in non tip showing up.

    what am i doing wrong?
    •  
      CommentAuthorNechckn
    • CommentTimeMay 28th 2008
     
    Lil'Sparky,

    We are always happy to help an author.

    Please feel free to hit us up on our IRC channel. The busier times are early afternoon to late evening EST (GMT -5) though there are some of us on at just about any hour.

    #Norganna on Freenode.net or irc://chat.freenode.net/norganna

    As a side note, if you are the Lil'Sparky of "The Workshop", many of us are big fans! ;-)

    Looking forward to hearing from you,

    NIkk :shades:
    • CommentAuthorlilsparky
    • CommentTimeMay 28th 2008
     
    woot! that's me!

    i have never used irc before... i can give it a try tho.
    •  
      CommentAuthordinesh
    • CommentTimeMay 28th 2008
     
    perhaps you'd like this web client for starters then: http://norganna.org/irc/
World of Warcraft™ and Blizzard Entertainment™ are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.