mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 08:24:44 +00:00
update Vendor Grays
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user