Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
Register
Advertisement

Dongle is a minimal addon framework that tries to provide those components that are necessary for the bulk of addons, without trying to be a full-featured abstraction of the World of Warcraft API. Rather than providing a java-like library such as Sea, Dongle provides a more pseudo-object oriented approach, allowing you to create a table with basic functionality included.

A basic Dongle addon to print "Hello World" to the default chat frame, waiting until the game is fully initialized looks like this:

HelloWorld = DongleStub("Dongle-Beta0"):New("HelloWorld")

function HelloWorld:Enable()
  self:Print("Hello World!")
end

Dongle uses a few simple things to make things easier for both developers and users. The versioning stub included in all Dongle libaries is called DongleStub, and is based off Iriel's embedded framework design [1]. Rather than include DongleStub is a seperate file in the distribution, the core Dongle libaries have the latest version of DongleStub included or built into the file distribution. That means to use Dongle, you simply include Dongle.lua and put it in your .toc file.

You can explore the Dongle API starting with the Core API which links to all dongle systems.

Advertisement