-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Fixed a bug where at less than 5 rows to show it resulted in lua errors (for example at 60) - Fixed a bug which made hunter pet skills not show - Fixed an odd bug which tainted the raid unit frames when more than 8 dropdown items exists - Some other stuff
- Loading branch information
1 parent
864aeca
commit ae70733
Showing
11 changed files
with
2,336 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
--$Id: LibEasyMenu.lua 30 2018-04-24 06:44:39Z arith $ | ||
-- Simplified Menu Display System | ||
-- This is a basic system for displaying a menu from a structure table. | ||
-- | ||
-- See UIDropDownMenu.lua for the menuList details. | ||
-- | ||
-- Args: | ||
-- menuList - menu table | ||
-- menuFrame - the UI frame to populate | ||
-- anchor - where to anchor the frame (e.g. CURSOR) | ||
-- x - x offset | ||
-- y - y offset | ||
-- displayMode - border type | ||
-- autoHideDelay - how long until the menu disappears | ||
-- | ||
-- | ||
-- ---------------------------------------------------------------------------- | ||
-- Localized Lua globals. | ||
-- ---------------------------------------------------------------------------- | ||
local _G = getfenv(0) | ||
-- ---------------------------------------------------------------------------- | ||
local MAJOR_VERSION = "LibEasyMenu" | ||
local MINOR_VERSION = 90000 + tonumber(("$Rev: 30 $"):match("%d+")) | ||
|
||
local LibStub = _G.LibStub | ||
if not LibStub then error(MAJOR_VERSION .. " requires LibStub.") end | ||
local Lib = LibStub:NewLibrary(MAJOR_VERSION, MINOR_VERSION) | ||
if not Lib then return end | ||
|
||
function L_EasyMenu(menuList, menuFrame, anchor, x, y, displayMode, autoHideDelay ) | ||
if ( displayMode == "MENU" ) then | ||
menuFrame.displayMode = displayMode; | ||
end | ||
L_UIDropDownMenu_Initialize(menuFrame, L_EasyMenu_Initialize, displayMode, nil, menuList); | ||
L_ToggleDropDownMenu(1, nil, menuFrame, anchor, x, y, menuList, nil, autoHideDelay); | ||
end | ||
|
||
function L_EasyMenu_Initialize( frame, level, menuList ) | ||
for index = 1, #menuList do | ||
local value = menuList[index] | ||
if (value.text) then | ||
value.index = index; | ||
L_UIDropDownMenu_AddButton( value, level ); | ||
end | ||
end | ||
end | ||
|
Oops, something went wrong.