Mercurial > wow > reagentmaker
diff EnchantOnScroll.lua @ 124:f17fc88e971e
Remove trailing spaces
author | contrebasse |
---|---|
date | Sun, 11 Aug 2013 23:24:11 +0200 |
parents | 0fd1fd1ba2d9 |
children | 0a420daa0b3c |
line wrap: on
line diff
--- a/EnchantOnScroll.lua Sun Aug 11 23:18:02 2013 +0200 +++ b/EnchantOnScroll.lua Sun Aug 11 23:24:11 2013 +0200 @@ -29,7 +29,7 @@ btn:Hide() return end - + -- Check that there's scrolls in the bags local itemCount = GetItemCount(SCROLL_ID) if not itemCount or itemCount==0 then @@ -39,7 +39,7 @@ return end btn:SetText(A.L["Enchant a scroll (%d)"]:format(itemCount)) - + if numAvailable==0 then btn:Disable() btn:Show() @@ -60,11 +60,11 @@ btn:SetPoint("TOPRIGHT",TradeSkillCreateButton,"TOPLEFT",0,0) btn:SetText(A.L["Enchant on a scroll"]) btn:Show() - + btn:SetScript("OnClick",function() -- from http://wowprogramming.com/utils/xmlbrowser/live/AddOns/Blizzard_TradeSkillUI/Blizzard_TradeSkillUI.xml DoTradeSkill(TradeSkillFrame.selectedSkill,1) - + -- From GnomeWorks/ScrollMaking.lua UseItemByName(SCROLL_ID) end)