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-1.0"):New("HelloWorld") function HelloWorld:Enable() self:Print("Hello World!") end
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-1.0"):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 libraries is called DongleStub, and is based off Iriel's embedded framework design. Rather than include DongleStub as a separate file in the distribution, the core Dongle libraries 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.