Compare with Previous | Blame | View Log
local _, class = UnitClass('player'); if(class ~= 'ROGUE') then return end TradeFrameUnlockButton = CreateFrame('Button', 'TradeFrameUnlockButton', TradeFrame, 'SecureActionButtonTemplate, UIPanelButtonTemplate') TradeFrameUnlockButton:SetHeight(22) TradeFrameUnlockButton:SetWidth(85) TradeFrameUnlockButton:RegisterForClicks('AnyUp') TradeFrameUnlockButton:SetAttribute('type', 'spell') TradeFrameUnlockButton:SetAttribute('spell', GetSpellInfo(1804)) TradeFrameUnlockButton:SetPoint('RIGHT', TradeFrameTradeButton, 'LEFT', -2, 1) TradeFrameUnlockButton:SetText('Unlock')