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.

ContentsxxviiChapter 24 Scanning <strong>and</strong> Constructing Tooltips 451Underst<strong>and</strong>ing the Tooltip System 451Different Types <strong>of</strong> Tooltips 452Contextual Tooltips 452Static Tooltips 453Tooltip Contents 453Custom Text in a Tooltip 453Game Element Tooltips 455Adding In<strong>for</strong>mation to the Tooltip 458Loading the Tooltip with Item In<strong>for</strong>mation 458Getting In<strong>for</strong>mation from Tooltips 460Accessing Individual Tooltip Lines 460Checking Soulbound Status 461Using Global Strings <strong>for</strong> Localization 461Replacing a Script Instead <strong>of</strong> Hooking a Script 461Summary 462Chapter 25 Taking Protected Action in Combat 463Snippets: The Basis <strong>of</strong> Secure Action 463How Can Addon Code Be Secure? 463Writing a Snippet 464Secure H<strong>and</strong>ler Frames 464H<strong>and</strong>ler Template <strong>Reference</strong> 466Integrating a Click H<strong>and</strong>ler with a Secure Action Button 468Preserving State <strong>and</strong> Controlling In<strong>for</strong>mation 473Private Global Environments 474Secure API Functions 475The control Object 476Frame H<strong>and</strong>les 477Allowed Actions 479Additional or Changed Actions 479Wrapping Frame Scripts 482A Simple Click Wrapper 483Using a Post-Hook 484Script Wrapper <strong>Reference</strong> 485Triggered Changes 486State Drivers 486State Responders 487Responding to Show/Hide 487Responding to Attribute <strong>and</strong> State Changes 488State Conditionals 490Target Specifiers <strong>and</strong> Unit Conditions 491State Variables 492Unit Conditions 492General Conditions 493

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

Saved successfully!

Ooh no, something went wrong!