Chapter 13 - Using the World of Warcraft API
Downloads
TargetText-chapter13 - Chapter 13 version. See also Chapter 17.
Table of Contents
Using the World of Warcraft API - 181
- Understanding the WoW API - 181
- Normal APIs - 182
- Library-like APIs - 182
- FrameXML Functions - 183
- Protected Functions - 183
- Unit Functions Up Close - 184
- Creating a Simple Unit Frame - 186
- Building the Frame - 187
- Adding Data Fields - 188
- Setting Up Frame Event Handlers - 190
- OnLoad - 191
- OnEvent - 192
- OnShow and OnHide - 193
- Putting the API to Use - 194
- Showing and Hiding the Frame - 195
- Implementing Simple Update Functions - 196
- Setting the Name of Your Target - 196
- Showing PvP Status - 197
- Updating the Target’s Power Type - 197
- Setting the Target’s Class - 197
- Displaying Health and Mana Values - 198
- Updating Hostility Information - 200
- Setting Your Target’s Faction - 201
- Showing the Target’s Level - 201
- Displaying the Target’s Reaction - 202
- Summary - 205