12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

1262 Part IV ■ <strong>Reference</strong>ScrollingMessageFrame, SimpleHTML, Slider, StatusBar, TabardModel,TranslationOnFinishedRun when the animation (or animation group) finishes animating.OnFinished(self, requested)Does not run <strong>for</strong> an animation group set to loop unless the group’s :Finish()method is called.Arguments:self—<strong>Reference</strong> to the widget <strong>for</strong> which the script was run (animation)requested—True if animation finished because <strong>of</strong> a call to AnimationGroup:Finish(); false otherwise (boolean)This widget script is defined <strong>for</strong> the following widget types: Alpha, Animation,AnimationGroup, Path, Rotation, Scale, TranslationOnHideRun when the frame’s visibility changes to hidden.OnHide(self)This script h<strong>and</strong>ler runs whether the frame was directly hidden (via its:Hide() method) or implicitly hidden due to a parent frame being hidden.Arguments:self—<strong>Reference</strong> to the widget <strong>for</strong> which the script was run (frame)This widget script is defined <strong>for</strong> the following widget types: Button,CheckButton, ColorSelect, Cooldown, DressUpModel, EditBox, Frame,GameTooltip, MessageFrame, Minimap, Model, MovieFrame, PlayerModel,ScrollFrame, ScrollingMessageFrame, SimpleHTML, Slider, StatusBar,TabardModelOnHorizontalScrollRun when the scroll frame’s horizontal scroll position changes.OnHorizontalScroll(self, <strong>of</strong>fset)Arguments:self—<strong>Reference</strong> to the widget <strong>for</strong> which the script was run (scrollframe)<strong>of</strong>fset—New horizontal scroll position (in pixels, measured from the leftmostscroll position) (number)This widget script is defined <strong>for</strong> the following widget types: ScrollFrameOnHyperlinkClickRun when the mouse clicks a hyperlink in the scrolling message frame orSimpleHTML frame.OnHyperlinkClick(self, “linkData“, “link“, “button“)This script h<strong>and</strong>ler is run when the mouse button is released while the mousecursor is over the same hyperlink text in which the mouse button was pressed.Arguments:self—<strong>Reference</strong> to the widget <strong>for</strong> which the script was run (frame)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!