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

LibDropDownMenu

Game Version: 9.1.5
Total Downloads: 2,397
Updated: Nov 7, 2021
Created: Jul 20, 2018
download LibDropDownMenuDownload Earlier Versions

Earlier Versions

Name Size Uploaded Game Version Downloads
r21 +1 More release 21.72 KB Nov 7, 2021 9.1.5 0 download LibDropDownMenu r21

+1 More releaseDownload
r19 +1 More release 20.89 KB Nov 7, 2021 9.1.0 0 download LibDropDownMenu r19

+1 More releaseDownload
r18 +1 More release 20.93 KB Nov 7, 2021 9.1.0 0 download LibDropDownMenu r18

+1 More releaseDownload
r17 +1 More release 20.92 KB Nov 7, 2021 9.1.0 0 download LibDropDownMenu r17

+1 More releaseDownload
r19 release 21.14 KB Jul 25, 2021 9.1.0 168 download LibDropDownMenu r19 releaseDownload
r19-bcc release 21.14 KB Jul 25, 2021 2.5.1 119 download LibDropDownMenu r19-bcc releaseDownload
r19-classic release 21.14 KB Jul 25, 2021 1.13.7 28 download LibDropDownMenu r19-classic releaseDownload
r17 release 21.17 KB Jul 14, 2021 9.1.0 105 download LibDropDownMenu r17 releaseDownload
r17-classic release 21.17 KB Jul 14, 2021 1.13.7 29 download LibDropDownMenu r17-classic releaseDownload
r17-bc release 21.17 KB Jul 14, 2021 2.5.1 39 download LibDropDownMenu r17-bc releaseDownload
r15-bc release 20.90 KB Jul 12, 2021 2.5.1 43 download LibDropDownMenu r15-bc releaseDownload
r15-classic release 20.90 KB Jul 12, 2021 1.13.7 46 download LibDropDownMenu r15-classic releaseDownload
r15 +1 More release 20.65 KB Jul 12, 2021 9.1.0 92 download LibDropDownMenu r15

+1 More releaseDownload
r12 release 19.81 KB Apr 7, 2021 9.0.5 221 download LibDropDownMenu r12 releaseDownload
r11 release 19.83 KB Mar 15, 2021 9.0.5 138 download LibDropDownMenu r11 releaseDownload
r10 +1 More release 18.12 KB Oct 14, 2020 9.0.1 171 download LibDropDownMenu r10

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

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

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

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

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

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

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

Description

Share this:

Description

This is a converted version of Blizzards UIDropDownMenu from WoW Retail 9.0.5.37893 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.

 

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