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.

CHAPTER29Widget <strong>Reference</strong>To respond to game events or interact with the user in any way, an addon must makeuse <strong>of</strong> game widgets. This chapter provides a reference <strong>for</strong> the various widget typesthat exist in <strong>World</strong> <strong>of</strong> <strong>Warcraft</strong>, along with the script h<strong>and</strong>lers that can be used <strong>for</strong>interaction with the user.Widget TypesThere are more 25 different widget types available in the <strong>WoW</strong> user interface. Thissection details these types along with the abstract types that are used to clarify thehierarchy <strong>and</strong> inheritance <strong>of</strong> the various widget methods.UIObjectUIObject is an abstract UI object type that is used to group together methods that arecommon to all user interface types. All <strong>of</strong> the various user interface elements in <strong>World</strong><strong>of</strong> <strong>Warcraft</strong> are derived from UIObject.UIObject defines the following methods:GetNameReturns the widget object’s name.name = UIObject:GetName()Returns:name—Name <strong>of</strong> the object (string)GetObjectTypeReturns the object’s widget type.type = UIObject:GetObjectType()1121

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

Saved successfully!

Ooh no, something went wrong!