img



img

LibDropDownMenu


By: hizuro_de
Addon | img 9,139




Description

___________________________________________________________________________________________________________________________

This is a conversion of Blizzards' UIDropDownMenu for WoW Retail to a library that can be accessed by LibStub.

It is not possible to use templates that are xml based in libraries due to Blizzard's new error handling. I converted the templates to lua functions.

Two goals for me:

1. Keep sync to Blizzards retail client version.

2. The client should work with classic clients.

The XML template is converted to lua functions

UIDropDownMenuButtonTemplate into .Create_DropDownMenuButton( [, [, ]]>

UIDropDownListTemplate into .Create_DropDownMenuList( [, [, ]]>

UIDropDownMenuTemplate into .Create_DropDownMenu( [, [, ]]>

At this time, the OptsTable only allows one entry to be used. { id= }

You can also see our Example of a Good Way to Start

local lib = LibStub("LibDropDownMenu");

local menuFrame = lib.Create_DropDownMenu("MyAddOn_DropDownMenu",UIParent);

-- instead of template UIDropDownMenuTemplate

{ local menuList = Local menuList =

text="TestTitle", isTitle=true ,

text="TestFunction", isNotRadio=true, notCheckable=false

};

lib.EasyMenu(menuList,menuFrame,"cursor",0,0,"MENU");

Repository

git clone https://curseforgemods.com/




About Project

Created: March 2nd 2024

Updated: March 2nd 2024

Project ID: 16240

License: All Rights Reserved

__________________________________________

Game Versions:

1.01.03

1.01.03

1.01.03

1.01.03

1.01.03

__________________________________________

Flavors:

WoW Retail

__________________________________________

Categories

Companions

Battle

__________________________________________

Main File

hizuro_de_LibDropDownMenu.zip
  • Release
  • March 2nd 2024

    __________________________________________

    Recent File

    hizuro_de_LibDropDownMenu.zip
  • Release
  • March 2nd 2024

    __________________________________________

    Members

    img
    hizuro_de
    Owner

    __________________________________________

    Report