$ show Gethe/wow-ui-source
This repository is a complete mirror of the World of Warcraft game client's UI source code, provided by Blizzard for reference by addon developers. It contains hundreds of official Blizzard addons written in Lua and XML, covering every in-game interface element from action bars and unit frames to auction house, map, and housing systems. The architecture is heavily event-driven and based on a mixin composition pattern (CreateFromMixins), with extensive use of frame pools, data providers, and secure/taint-aware coding. The codebase is production-grade and actively maintained alongside the game's releases, making it the authoritative reference for WoW addon development. While nearly all components are tightly coupled to WoW's proprietary APIs, several isolated utility libraries (color math, vector math, bit flags, export/import streams) demonstrate patterns that could be extracted for general Lua projects.
The LLM identified 3 files worth highlighting for reuse:
Provides color creation, conversion (RGB, HSV, hex), blending, and class color lookup functions. Self-contained and requires no WoW internals, making it reusable in any Lua project for color manipulation.
Implements a 2D vector mixin with operations such as addition, subtraction, dot product, cross product, normalization, rotation, and distance calculations. Cleanly designed with no external dependencies, suitable for games or simulation software.
A lightweight, pure-Lua class library with support for inheritance, mixins, instance type checking, and weak-key class tracking. Although bundled as a third-party addon, it is fully standalone and provides a robust OOP foundation for any Lua project.