mirror of
https://github.com/Bluewhale1337/ElvUIModernized.git
synced 2026-07-27 16:34:45 +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
|
if IsShiftKeyDown() or autoRepair == "NONE" or not CanMerchantRepair() then return end
|
||||||
|
|
||||||
local cost, possible = GetRepairAllCost()
|
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 cost > 0 then
|
||||||
if possible then
|
if possible then
|
||||||
RepairAllItems(autoRepair == "GUILD")
|
E:Print(L["Your items have been repaired for: "]..E:FormatMoney(cost, "BLIZZARD", true))
|
||||||
|
|
||||||
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
|
else
|
||||||
E:Print(L["You don't have enough money to repair."])
|
E:Print(L["You don't have enough money to repair."])
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -52,13 +52,13 @@ local function LoadSkin()
|
|||||||
E:StyleButton(MerchantRepairItemButton)
|
E:StyleButton(MerchantRepairItemButton)
|
||||||
E:SetTemplate(MerchantRepairItemButton, "Default", true)
|
E:SetTemplate(MerchantRepairItemButton, "Default", true)
|
||||||
|
|
||||||
--[[for i = 1, MerchantRepairItemButton:GetNumRegions() do
|
for i = 1, MerchantRepairItemButton:GetNumRegions() do
|
||||||
local region = select(i, MerchantRepairItemButton:GetRegions())
|
local region = select(i, MerchantRepairItemButton:GetRegions())
|
||||||
if region:GetObjectType() == "Texture" then
|
if region:GetObjectType() == "Texture" then
|
||||||
region:SetTexCoord(0.04, 0.24, 0.06, 0.5)
|
region:SetTexCoord(0.04, 0.24, 0.06, 0.5)
|
||||||
E:SetInside(region)
|
E:SetInside(region)
|
||||||
end
|
end
|
||||||
end]]
|
end
|
||||||
|
|
||||||
E:StyleButton(MerchantRepairAllButton)
|
E:StyleButton(MerchantRepairAllButton)
|
||||||
E:SetTemplate(MerchantRepairAllButton, "Default", true)
|
E:SetTemplate(MerchantRepairAllButton, "Default", true)
|
||||||
|
|||||||
Reference in New Issue
Block a user