Change Log:
--------------------
5.1.00 - 27th November 2012
Updated for World of Warcraft patch 5.1.0.
5.0.00 - 11th November 2012
First release.
Description:
--------------------
A developer addon for World of Warcraft by Leatrix
8708654What does it do?
Leatrix Dropdown is a developer addon. It allows you, as a developer, to add taint-free dropdown menus to your addon simply by calling a global function. The dropdown parameters are passed as arguments to the function. A full demonstration panel is included which consists of 3 dropdown menus (see the screenshot to the right).
Origins
During the development of Leatrix Plus (more specifically, the option to anchor the tooltip to the mouse pointer), it became clear that I needed a dropdown menu in order to allow the user to choose the tooltip anchor that they wish to use.
That presented a problem as I wanted the dropdown menu to work completely taint-free (even during combat). However, it's well known to the developer community that usage of the Blizzard API for creating and manipulating dropdown menus is perhaps the biggest cause of taint in the history of the game. Lots of addons suffer from taint purely because they use the Blizzard API for their dropdown menu system.
To avoid the same problem in Leatrix Plus, I set about creating a dropdown menu system which worked completely independently of the Blizzard API. Up until now, that code has only existed in Leatrix Plus so I'm releasing it here with the intention that other developers can look at it and perhaps use it (or parts of it) in their own addons.
The overall aim of Leatrix Dropdown is to encourage the use of taint-free dropdown menus. Feel free to look at the code, change it if you wish and perhaps incorporate it into your own addons.
First Impressions
The first thing that you should do is to install Leatrix Dropdown like any other addon. Next, load Wow and then take a look at the panel shown on th...
--------------------
5.1.00 - 27th November 2012
Updated for World of Warcraft patch 5.1.0.
5.0.00 - 11th November 2012
First release.
Description:
--------------------
A developer addon for World of Warcraft by Leatrix
8708654What does it do?
Leatrix Dropdown is a developer addon. It allows you, as a developer, to add taint-free dropdown menus to your addon simply by calling a global function. The dropdown parameters are passed as arguments to the function. A full demonstration panel is included which consists of 3 dropdown menus (see the screenshot to the right).
Origins
During the development of Leatrix Plus (more specifically, the option to anchor the tooltip to the mouse pointer), it became clear that I needed a dropdown menu in order to allow the user to choose the tooltip anchor that they wish to use.
That presented a problem as I wanted the dropdown menu to work completely taint-free (even during combat). However, it's well known to the developer community that usage of the Blizzard API for creating and manipulating dropdown menus is perhaps the biggest cause of taint in the history of the game. Lots of addons suffer from taint purely because they use the Blizzard API for their dropdown menu system.
To avoid the same problem in Leatrix Plus, I set about creating a dropdown menu system which worked completely independently of the Blizzard API. Up until now, that code has only existed in Leatrix Plus so I'm releasing it here with the intention that other developers can look at it and perhaps use it (or parts of it) in their own addons.
The overall aim of Leatrix Dropdown is to encourage the use of taint-free dropdown menus. Feel free to look at the code, change it if you wish and perhaps incorporate it into your own addons.
First Impressions
The first thing that you should do is to install Leatrix Dropdown like any other addon. Next, load Wow and then take a look at the panel shown on th...