Earlier Versions
Name | Size | Uploaded | Game Version | Downloads | |
v1.0.6 release | 14.45 KB | May 22, 2021 | 9.0.1 | 0 | ![]() |
v1.0.5 release | 14.52 KB | Dec 8, 2020 | 9.0.1 | 44 | ![]() |
v1.0.2 release | 14.75 KB | Dec 6, 2020 | 9.0.1 | 27 | ![]() |
v1.0.1 release | 14.51 KB | Nov 28, 2020 | 9.0.1 | 20 | ![]() |
v1.0.0 release | 14.66 KB | Sep 2, 2020 | 9.0.1 | 33 | ![]() |
v1.0.1-1-ge239d12-alpha alpha | 14.64 KB | Dec 6, 2020 | 9.0.1 | 8 | ![]() |
8a4b1b1-alpha alpha | 14.66 KB | Sep 2, 2020 | 9.0.1 | 11 | ![]() |
Description
The biggest diference of this library over the others is that it doesn’t create Global functions.
I tried to make it compatible with classic. If you find any bugs, please report. 🙂
The name of the functions should be the same as Blizzards APIs. (EasyMenu included!)
The following ones are added:
- UIDropDownMenu_Create(name, parent, ignoreNameConflict): Use this instead of CreateFrame, by default this function will fail if a frame with the same name exists. If ignoreNameConflict is true, it will create the frame anyway, which might make a new unnamed frame!.
- UIDropDownMenu_GetOrCreate(name, parent): Same as the UIDropDownMenu_Create, but only creates a new frame if it doesn’t already exist.
Example of use:
local EDDM = LibStub(“ElioteDropDownMenu-1.0”)
local myInitFunction = function()
local t = EDDM.UIDropDownMenu_CreateInfo()
t.text = “my button!”
t.notCheckable = true
EDDM.UIDropDownMenu_AddButton(t)
end
local dropdownFrame = EDDM.UIDropDownMenu_GetOrCreate(“MyTtp”)
EDDM.UIDropDownMenu_Initialize(dropdownFrame, myInitFunction, “MENU”)
EDDM.ToggleDropDownMenu(1, nil, dropdownFrame, “cursor”, 3, -3)
Add a comment