+353-1-416-8900REST OF WORLD
+44-20-3973-8888REST OF WORLD
1-917-300-0470EAST COAST U.S
1-800-526-8630U.S. (TOLL FREE)


World of Warcraft Programming. A Guide and Reference for Creating WoW Addons. 2nd Edition

  • ID: 2251522
  • Book
  • February 2010
  • Region: Global
  • 1440 Pages
  • John Wiley and Sons Ltd
Your secret weapon against the Lich King′s wrath

World of Warcraft has entered a new dimension. Take command of it by modifying the interface with your own unique addons. Whether your goal is to enhance addons you already use, to enlarge your arsenal by creating some all–new features, or to immerse yourself in the programming as well as the game, this book will be your oracle. Learn the arcane languages of Lua and XML and master the craft of addon creation!

  • Understand the anatomy of an addon

  • Work with frames, widgets, and other graphical elements

  • Explore basic and advanced functions and control structures

  • Track damage with CombatTracker, and respond to the combat log and threat informationTrack, filter, and sort your inventory by writing BagBuddy, a fully functional addon

  • Create slash commands, custom graphics, scroll frames, and dropdown menus

Who are you?

Apprentice programmers with no prior experience learn Lua and XML in Part I

Journeymen who have done some programming skim Part I and start with the details about addon creation in Part II

Master programmers with addons already in their arsenal dive right into Advanced Addon Techniques in Part III

Note: Product cover images may vary from those shown

Introduction xxxvii

Part I Learning to Program 1

Chapter 1 Programming for World of Warcraft 3

Chapter 2 Exploring Lua Basics 13

Chapter 3 Basic Functions and Control Structures 39

Chapter 4 Working with Tables 53

Chapter 5 Advanced Functions and Control Structures 77

Chapter 6 Lua Standard Libraries 91

Chapter 7 Learning XML 111

Part II Programming in World of Warcraft 123

Chapter 8 Anatomy of an Addon 125

Chapter 9 Working with Frames, Widgets, and Other Graphical Elements 143

Chapter 10 Saving Time with Frame Templates 171

Chapter 11 Exploring the World of Warcraft API 187

Chapter 12 Interacting with Widgets 207

Chapter 13 Responding to Game Events 243

Chapter 14 Tracking Damage with CombatTracker 267

Part III Advanced Addon Techniques 283

Chapter 15 Taking Action with Secure Templates 285

Chapter 16 Binding Keys and Clicks to Addon Code 309

Chapter 17 Creating Slash Commands 337

Chapter 18 Responding to Graphic Updates with OnUpdate 351

Chapter 19 Altering Existing Behavior with Function Hooking 359

Chapter 20 Creating Custom Graphics 373

Chapter 21 Responding to the Combat Log and Threat Information 387

Chapter 22 Creating Scroll Frames 413

Chapter 23 Creating Dropdown Menus 431

Chapter 24 Scanning and Constructing Tooltips 451

Chapter 25 Taking Protected Action in Combat 463

Chapter 26 Creating Unit Frames with Group Templates 501

Part IV Reference 537

Chapter 27 API Reference 539

Chapter 28 API Categories 1025

Chapter 29 Widget Reference 1121

Chapter 30 Events Reference 1277

Part V Appendixes 1303

Appendix A Best Practices 1305

Appendix B Utilizing Addon Libraries 1329

Appendix C Tracking History Using Version Control Systems 1339

Appendix D Addon Author Resources 1349

Index 1357

Note: Product cover images may vary from those shown
James Whitehead II
Rick Roe
Note: Product cover images may vary from those shown