|
if(text and not InCombatLockdown() and IsAltKeyDown()) then |
if(text == ITEM_MILLABLE or text == ITEM_PROSPECTABLE) then |
local spell = text == ITEM_MILLABLE and milling or prospecting |
local scribe = text == ITEM_MILLABLE |
button:ClearAllPoints() |
button:SetAttribute('macrotext', macro:format(spell, GetMouseFocus():GetParent():GetID(), GetMouseFocus():GetID())) |
button:SetAttribute('macrotext', macro:format(scribe and milling or prospecting, GetMouseFocus():GetParent():GetID(), GetMouseFocus():GetID())) |
button:SetAllPoints(GetMouseFocus()) |
AutoCastShine_AutoCastStart(button, 0.5, 1, 0.5) |
button:Show() |
|
if(scribe) then |
AutoCastShine_AutoCastStart(button, 0.5, 1, 0.5) |
else |
AutoCastShine_AutoCastStart(button, 1, 0.5, 0.5) |
end |
end |
end |
end |