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...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 12 ■ Interacting with Widgets 229This widget type doesn’t define any new scripts, but has a number <strong>of</strong>methods that allow you to set <strong>and</strong> get the value <strong>of</strong> the color wheel <strong>and</strong> othercolor selection elements.EditBoxThe EditBox type <strong>of</strong> frame is used to allow <strong>for</strong> text input, along with basichistory <strong>and</strong> editing capabilities. The simplest example <strong>of</strong> an edit box is attachedto the chat frame, enabling you to run comm<strong>and</strong>s <strong>and</strong> communicate with otherplayers, as shown in Figure 12-10.Figure 12-10: Chat frame’s EditBoxGameTooltipA GameTooltip is a frame that can display two columns <strong>of</strong> data that furtherdescribe the UI element you currently have your mouse over, includingbuttons, items, <strong>and</strong> even players in the 3-D world. Figure 12-11 shows an itemtooltip.Figure 12-11: Item tooltipMessageFrameMessageFrames are used by the game to send a stream <strong>of</strong> errors, warnings, ormessages to the user. This is most <strong>of</strong>ten seen with the UIErrorsFrame, whichdisplays any issues with spellcasting, as shown in Figure 12-12.Figure 12-12: UIErrorsFrame showing spellcasting errorsMinimapThe Minimap frame type is special in that there can only ever be one <strong>of</strong>them. The minimap in the default user interface is used <strong>for</strong> navigation (see

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

Saved successfully!

Ooh no, something went wrong!