update Vendor Grays

This commit is contained in:
Crum
2018-01-08 08:08:02 -06:00
parent 3c58200106
commit aa2b36afab
2 changed files with 3 additions and 14 deletions
-11
View File
@@ -86,20 +86,9 @@ function M:MERCHANT_SHOW()
if IsShiftKeyDown() or autoRepair == "NONE" or not CanMerchantRepair() then return end
local cost, possible = GetRepairAllCost()
local withdrawLimit = GetGuildBankWithdrawMoney()
if autoRepair == "GUILD" and (not CanGuildBankRepair() or cost > withdrawLimit) then
autoRepair = "PLAYER"
end
if cost > 0 then
if possible then
RepairAllItems(autoRepair == "GUILD")
if autoRepair == "GUILD" then
E:Print(L["Your items have been repaired using guild bank funds for: "]..E:FormatMoney(cost, "BLIZZARD", true))
else
E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD", true))
end
else
E:Print(L["You don't have enough money to repair."])
end
@@ -52,13 +52,13 @@ local function LoadSkin()
E:StyleButton(MerchantRepairItemButton)
E:SetTemplate(MerchantRepairItemButton, "Default", true)
--[[for i = 1, MerchantRepairItemButton:GetNumRegions() do
for i = 1, MerchantRepairItemButton:GetNumRegions() do
local region = select(i, MerchantRepairItemButton:GetRegions())
if region:GetObjectType() == "Texture" then
region:SetTexCoord(0.04, 0.24, 0.06, 0.5)
E:SetInside(region)
end
end]]
end
E:StyleButton(MerchantRepairAllButton)
E:SetTemplate(MerchantRepairAllButton, "Default", true)