-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathExtSupport.lua
44 lines (38 loc) · 1.7 KB
/
ExtSupport.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
function ExtVendor_ElvUICheck()
if (EXTVENDOR.ElvUI_Installed) then return; end
if (ElvUI) then
local E = ElvUI[1];
local S = E:GetModule("Skins");
if ((not E.private.skins.blizzard.enable) or (not E.private.skins.blizzard.merchant)) then return; end
MerchantFrame:SetWidth(690);
S:HandleButton(MerchantFrameFilterButton);
local i;
for i = 13, 20 do
local button = _G["MerchantItem"..i.."ItemButton"];
local icon = button.icon;
local iconBorder = button.IconBorder;
local item = _G["MerchantItem"..i];
item:StripTextures(true);
item:CreateBackdrop("Default");
button:StripTextures();
button:StyleButton(false);
--button:SetTemplate("Default", true);
button:CreateBackdrop(nil, true);
button:Point("TOPLEFT", item, "TOPLEFT", 4, -4);
icon:SetTexCoord(unpack(E.TexCoords));
icon:SetInside();
iconBorder:SetAlpha(0);
--hooksecurefunc(iconBorder, 'SetVertexColor', function(self, r, g, b)
-- self:GetParent():SetBackdropBorderColor(r, g, b);
-- self:SetTexture("");
--end);
--hooksecurefunc(iconBorder, 'Hide', function(self)
-- self:GetParent():SetBackdropBorderColor(unpack(E.media.bordercolor));
--end);
_G["MerchantItem"..i.."MoneyFrame"]:ClearAllPoints();
_G["MerchantItem"..i.."MoneyFrame"]:Point("BOTTOMLEFT", button, "BOTTOMRIGHT", 3, 0);
end
S:HandleEditBox(MerchantFrameSearchBox);
EXTVENDOR.ElvUI_Installed = true;
end
end