WoW ElioteDropDownMenu addon Shadowlands/Burning Crusade Classic 2022
logo
wow addon ElioteDropDownMenu

ElioteDropDownMenu

Game Version: 9.0.1
Total Downloads: 143
Updated: May 22, 2021
Created: Sep 2, 2020
download ElioteDropDownMenuDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
v1.0.6 release 14.45 KB May 22, 2021 9.0.1 0 download ElioteDropDownMenu v1.0.6 releaseDownload
v1.0.5 release 14.52 KB Dec 8, 2020 9.0.1 44 download ElioteDropDownMenu v1.0.5 releaseDownload
v1.0.2 release 14.75 KB Dec 6, 2020 9.0.1 27 download ElioteDropDownMenu v1.0.2 releaseDownload
v1.0.1 release 14.51 KB Nov 28, 2020 9.0.1 20 download ElioteDropDownMenu v1.0.1 releaseDownload
v1.0.0 release 14.66 KB Sep 2, 2020 9.0.1 33 download ElioteDropDownMenu v1.0.0 releaseDownload
v1.0.1-1-ge239d12-alpha alpha 14.64 KB Dec 6, 2020 9.0.1 8 download ElioteDropDownMenu v1.0.1-1-ge239d12-alpha alphaDownload
8a4b1b1-alpha alpha 14.66 KB Sep 2, 2020 9.0.1 11 download ElioteDropDownMenu 8a4b1b1-alpha alphaDownload

Description

Share this:

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)

 

 

 

Comments

Add a comment