vanilla-wow-addons – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 --[[
2 menu.lua
3 Functions for Bongos Right Click Menus
4 --]]
5  
6 BMenu = {
7 ShowMenuForBar = function(menu, bar)
8 local dragButton = getglobal(bar:GetName() .. "DragButton");
9 local ratio = UIParent:GetScale() / dragButton:GetEffectiveScale();
10 local x = dragButton:GetLeft();
11 local y = dragButton:GetTop();
12  
13 menu:ClearAllPoints();
14 menu:SetPoint("TOPRIGHT", UIParent, "BOTTOMLEFT", x / ratio, y / ratio);
15 menu:Show();
16 end,
17 }