WoW LibDropDownMenu addon Shadowlands/classic 2020
logo
wow addon LibDropDownMenu

LibDropDownMenu

Game Version: 9.0.1
Total Downloads: 1,103
Updated: Oct 14, 2020
Created: Jul 20, 2018
download LibDropDownMenuDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
r10 +1 More release 18.12 KB Oct 14, 2020 9.0.1 60 download LibDropDownMenu r10

+1 More releaseDownload
r9 +1 More release 18.16 KB Dec 1, 2019 8.2.5 174 download LibDropDownMenu r9

+1 More releaseDownload
r8 +1 More release 18.07 KB Nov 4, 2019 8.2.5 87 download LibDropDownMenu r8

+1 More releaseDownload
r7 +1 More release 18.13 KB Jun 25, 2019 8.1.5 157 download LibDropDownMenu r7

+1 More releaseDownload
r6 +1 More release 18.10 KB Mar 18, 2019 8.1.5 167 download LibDropDownMenu r6

+1 More releaseDownload
r5 +1 More release 16.98 KB Jul 21, 2018 8.0.1 320 download LibDropDownMenu r5

+1 More releaseDownload
r4 +1 More release 16.96 KB Jul 20, 2018 8.0.1 42 download LibDropDownMenu r4

+1 More releaseDownload
r3 release 12.79 KB Jul 20, 2018 8.0.1 17 download LibDropDownMenu r3 releaseDownload

Description

Share this:

Description

This is a converted version of Blizzards UIDropDownMenu (from WoW 7.3.5) 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.

 

An update to UIDropDownMenu from version WoW 8.0.1 coming soon.

(customFrame support sounds interesting. for slider and input fields… 🙂

Sorry for waiting.
Now it's updated to UIDropDownMenu version from build 29737 with customFrame support.

One little info: Blizzard has removed the first argument from UIDropDownMenu_AddSeparator function. This Lib supports old and new argument order to prevent errors on update.

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

 • https://www.curseforge.com/members/hizuro_de/projects
 

Comments

Add a comment