Chapter 19 - Altering Existing Behavior with Function Hooking
Table of Contents
Altering Existing Behavior with Function Hooking - 267
- What Is Function Hooking? - 267
- Modifying Return Values - 268
- Hooking Widget Scripts - 269
- Hooking a Function Securely - 270
- Hooking Scripts Securely - 271
- Deciding When to Hook - 271
- Understanding the Hook Chain - 271
- You Can’t Rely on Order - 272
- There Is No “Unhook” - 272
- Hooking Hits Performance - 272
- Finding Alternatives - 273
- Designing an Addon: MapZoomOut - 273
- Creating a Timer - 274
- Creating MapZoomOut - 275
- Creating a Timer Frame - 276
- Initial Setup - 276
- Create the Function Hook - 276
- Writing the Timer Code - 276
- Final Setup - 277
- Testing MapZoomOut - 278
- Summary - 278