/trunk/Molinari
do |
local milling, prospecting = GetSpellInfo(51005), GetSpellInfo(31252) |
local macro = '/cast %s\n/use %s %s' |
local orig = tooltip:GetScript('OnTooltipSetItem') |
function tooltipHook(self) |
function tooltipHook(self, ...) |
if(self and orig) then orig(self, ...) end |
if(InCombatLockdown()) then return end |
if(self:GetItem() and IsAltKeyDown()) then |
button:SetFrameStrata('DIALOG') |
button:SetScript('OnLeave', function(self) self:Hide() end) |
button:SetScript('OnEvent', function(self, event, ...) self[event](self, event, ...) end) |
tooltip:HookScript('OnTooltipSetItem', tooltipHook) |