LibDropDownMenu

A converted version of Blizzards UIDropDownMenu into a library accessable by LibStub

Description

This is a converted version of Blizzards UIDropDownMenu from WoW Retail into a library accessable by LibStub.

Since Blizzards new xml error handling it is a problem to use xml templates in libraries. I've converted the templates into lua functions.

 

My two goals:

1. Keep sync to Blizzards retail client version.

2. It should be compatible to classic clients.

 

The XML templates are converted into lua functions

  • UIDropDownMenuButtonTemplate into <lib>.Create_DropDownMenuButton(<name>[,<parent>[,<optsTable>]]>
  • UIDropDownListTemplate into <lib>.Create_DropDownMenuList(<name>[,<parent>[,<optsTable>]]>
  • UIDropDownMenuTemplate into <lib>.Create_DropDownMenu(<name>[,<parent>[,<optsTable>]]>

Currently the optsTable can contain only one usable entry. { id=<number> }

 

Example

  local lib = LibStub("LibDropDownMenu");
local menuFrame = lib.Create_DropDownMenu("MyAddOn_DropDownMenu",UIParent);
-- instead of template UIDropDownMenuTemplate
local menuList = {
    { text="TestTitle", isTitle=true },
    { text="TestFunction", isNotRadio=true, notCheckable=false }
};
lib.EasyMenu(menuList,menuFrame,"cursor",0,0,"MENU");

 

Repository

  git clone https://repos.curseforge.com/wow/libdropdownmenu

 

In .pkgmeta file

externals:
  libs/LibDropDownMenu:
    url: https://repos.curseforge.com/wow/libdropdownmenu
    tag: latest

 

Hizuro's other projects

 

The LibDropDownMenu Team

profile avatar
  • 15
    Followers
  • 20
    Projects
  • 8.0M
    Downloads

More from hizuro_deView all

  • TooltipRealmInfo project image

    TooltipRealmInfo

    • 382.0K
    • Addons

    Adds realm informations to tooltips and country flags to chat channels or several character lists like friends, groupfinder and more.

    • 382.0K
    • June 28, 2026
    • Addons
    • +4
  • Broker Everything project image

    Broker Everything

    • 785.8K
    • Addons

    A collection of modules to display various informations as Broker-buttons on Broker Display AddOns or minimap buttons.

    • 785.8K
    • June 26, 2026
    • Addons
    • +4
  • BestSellButton project image

    BestSellButton

    • 16.4K
    • Addons

    An extrabutton under the Questlog to choose the reward item with the highest vendor price.

    • 16.4K
    • June 21, 2026
    • Addons
  • CommunityInfo project image

    CommunityInfo

    • 6.0K
    • Addons

    Display join, leave, online and offline messages like guilds and friends for communities in chat window and adds broker per community for panel addons like titan panel.

    • 6.0K
    • June 21, 2026
    • Addons
    • +1
  • TooltipRealmInfo project image

    TooltipRealmInfo

    • 382.0K
    • Addons

    Adds realm informations to tooltips and country flags to chat channels or several character lists like friends, groupfinder and more.

    • 382.0K
    • June 28, 2026
    • Addons
    • +4
  • Broker Everything project image

    Broker Everything

    • 785.8K
    • Addons

    A collection of modules to display various informations as Broker-buttons on Broker Display AddOns or minimap buttons.

    • 785.8K
    • June 26, 2026
    • Addons
    • +4
  • BestSellButton project image

    BestSellButton

    • 16.4K
    • Addons

    An extrabutton under the Questlog to choose the reward item with the highest vendor price.

    • 16.4K
    • June 21, 2026
    • Addons
  • CommunityInfo project image

    CommunityInfo

    • 6.0K
    • Addons

    Display join, leave, online and offline messages like guilds and friends for communities in chat window and adds broker per community for panel addons like titan panel.

    • 6.0K
    • June 21, 2026
    • Addons
    • +1