1.9.0_9.0.1

This commit is contained in:
mikx
2020-11-13 14:41:52 -05:00
parent 55d2c154b5
commit dbb50ecc96
24 changed files with 93 additions and 1794 deletions

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.
@@ -42,9 +42,18 @@ function CookAlert(frame, item, fvalue)
background:SetTexCoord(0, 0.605, 0, 0.703);
background:SetPoint("TOPLEFT", 0, 0);
background:SetPoint("BOTTOMRIGHT", 0, 0);
frame:SetBackdrop(backdrop)
frame:SetBackdropColor(0, 0, 0)
frame:SetBackdropBorderColor(0.4, 0.4, 0.4)
frame.Backdrop = CreateFrame("Frame", name.."Backdrop", f, "BackdropTemplate");
frame.Backdrop:SetAllPoints();
frame.Backdrop.backdropInfo = {
bgFile = "Interface\Tooltips\UI-Tooltip-Background",
edgeFile = "Interface\Tooltips\UI-Tooltip-Border",
edgeSize = 2,
insets = { left = 11, right = 12, top = 12, bottom = 9, },
};
frame.Backdrop:SetBackdrop(frame.Backdrop.backdropInfo);
--frame:SetBackdrop(backdrop)
frame.Backdrop:SetBackdropColor(51, 51, 51);
frame.Backdrop:SetBackdropBorderColor(0, 0, 0);
--local iconBorder = frame.Icon.Overlay;
--iconBorder:SetTexture("Interface\\AchievementFrame\\UI-Achievement-IconFrame");
--iconBorder:SetTexCoord(0, 0.5625, 0, 0.5625);

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.

View File

@@ -1,5 +1,5 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.

18
Function/Item.lua Normal file
View File

@@ -0,0 +1,18 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.
local MX = LibStub("AceAddon-3.0"):GetAddon("MxW");
local L = LibStub("AceLocale-3.0"):GetLocale("MxW");
function MX:ToItemID(itemString)
if not itemString then
return
end
local _, _, Color, Ltype, Id, Enchant, Gem1, Gem2, Gem3, Gem4, Suffix, Unique, LinkLvl, reforging, Name = string.find(itemString, "|?c?f?f?(%x*)|?H?([^:]*):?(%d+):?(%d*):?(%d*):?(%d*):?(%d*):?(%d*):?(%-?%d*):?(%-?%d*):?(%d*):?(%d*)|?h?%[?([^%[%]]*)%]?|?h?|?r?")
return tonumber(Id)
end

View File

@@ -2,6 +2,7 @@
<Script file="Alert.lua"/>
<Script file="DB.lua"/>
<Script file="Chat.lua"/>
<Script file="Item.lua"/>
<Script file="Math.lua"/>
<Script file="Money.lua"/>
<Script file="TSM.lua"/>

View File

@@ -1,5 +1,5 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.

View File

@@ -1,6 +1,6 @@
-- MxW (MxW Addon)
-- By mikx
-- https://git.mikx.xyz/wow/MxW_Addon
-- https://git.mikx.xyz/mikx/MxW_Addon
-- Licensed under the GNU General Public License 3.0
-- See included License file for more informations.
@@ -16,5 +16,6 @@ MX.TSM = MX.TSM or {}
-- GetItemValue(itemID, priceSource)
-- Return itemID value as a int using priceSource
function MX.TSM:GetItemValue(itemID, priceSource)
return TSMAPI_FOUR.CustomPrice.GetValue(priceSource, itemID)
local itemLink = "i:" .. tostring(itemID);
return TSM_API.GetCustomPriceValue(priceSource, itemLink)
end