WoWInterface SVN Molinari

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk
    from Rev 15 to Rev 16
    Reverse comparison

Rev 15 → Rev 16

Molinari/Molinari.lua
26,11 → 26,9
 
--]]
 
local button = CreateFrame('Button', 'Molinari', UIParent, 'SecureActionButtonTemplate, AutoCastShineTemplate')
local milling, prospecting = GetSpellInfo(51005), GetSpellInfo(31252)
if(not GetSpellInfo(milling) and not GetSpellInfo(31252)) then return end
 
local button = CreateFrame('Button', 'Molinari', UIParent, 'SecureActionButtonTemplate, AutoCastShineTemplate')
 
local strings = {
[ITEM_MILLABLE] = { name = milling, r = 0.5, g = 1, b = 0.5 },
[ITEM_PROSPECTABLE] = { name = prospecting, r = 1, g = 0.5, b = 0.5 },
78,6 → 76,8
end
 
function button:PLAYER_LOGIN()
if(not GetSpellInfo(milling) and not GetSpellInfo(31252)) then return end
 
self:RegisterForClicks('LeftButtonUp')
self:RegisterEvent('MODIFIER_STATE_CHANGED')
self:SetAttribute('*type*', 'macro')