1.6.0 - 8.0.1
This commit is contained in:
@@ -1,12 +1,19 @@
|
||||
-- MxW (MxW Addon)
|
||||
-- By mikx
|
||||
-- https://git.mikx.ca/wow-addons/MxW_Addon
|
||||
-- https://git.mikx.xyz/wow/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");
|
||||
|
||||
local backdrop = {
|
||||
bgFile = [[Interface\Tooltips\UI-Tooltip-Background]],
|
||||
edgeFile = [[Interface\Tooltips\UI-Tooltip-Border]],
|
||||
edgeSize = 2,
|
||||
insets = { left = 1, right = 1, top = 1, bottom = 1 }
|
||||
}
|
||||
|
||||
-- Alert Cooking
|
||||
-- Based on [[ AchievementAlertFrame ]] from Blizzard
|
||||
function CookAlert(frame, item, fvalue)
|
||||
@@ -20,7 +27,7 @@ function CookAlert(frame, item, fvalue)
|
||||
local unlocked = frame.Unlocked;
|
||||
local oldCheevo = frame.OldAchievement;
|
||||
|
||||
displayName:SetText(itemName);
|
||||
displayName:SetText(itemLink);
|
||||
|
||||
AchievementShield_SetPoints(0, shieldPoints, GameFontNormal, GameFontNormalSmall);
|
||||
|
||||
@@ -31,28 +38,31 @@ function CookAlert(frame, item, fvalue)
|
||||
frame.guildDisplay = nil;
|
||||
frame:SetHeight(88);
|
||||
local background = frame.Background;
|
||||
background:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Alert-Background");
|
||||
background:SetTexture([[Interface\Tooltips\UI-Tooltip-Background]]);
|
||||
background:SetTexCoord(0, 0.605, 0, 0.703);
|
||||
background:SetPoint("TOPLEFT", 0, 0);
|
||||
background:SetPoint("BOTTOMRIGHT", 0, 0);
|
||||
local iconBorder = frame.Icon.Overlay;
|
||||
iconBorder:SetTexture("Interface\\AchievementFrame\\UI-Achievement-IconFrame");
|
||||
iconBorder:SetTexCoord(0, 0.5625, 0, 0.5625);
|
||||
iconBorder:SetPoint("CENTER", -1, 2);
|
||||
frame:SetBackdrop(backdrop)
|
||||
frame:SetBackdropColor(0, 0, 0)
|
||||
frame:SetBackdropBorderColor(0.4, 0.4, 0.4)
|
||||
--local iconBorder = frame.Icon.Overlay;
|
||||
--iconBorder:SetTexture("Interface\\AchievementFrame\\UI-Achievement-IconFrame");
|
||||
--iconBorder:SetTexCoord(0, 0.5625, 0, 0.5625);
|
||||
--iconBorder:SetPoint("CENTER", -1, 2);
|
||||
frame.Icon:SetPoint("TOPLEFT", -26, 16);
|
||||
displayName:SetPoint("BOTTOMLEFT", 72, 36);
|
||||
displayName:SetPoint("BOTTOMRIGHT", -60, 36);
|
||||
unlocked:SetPoint("TOP", 7, -23);
|
||||
unlocked:SetFont("Fonts\\FRIZQT__.TTF", 10, "OUTLINE")
|
||||
unlocked:SetFont("Interface\\Addons\\MxW\\Media\\Font\\Homespun.ttf", 10, "OUTLINEMONOCHROME")
|
||||
unlocked:SetText(fvalue);
|
||||
frame.GuildName:Hide();
|
||||
frame.GuildBorder:Hide();
|
||||
frame.GuildBanner:Hide();
|
||||
frame.glow:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Alert-Glow");
|
||||
frame.glow:SetTexCoord(0, 0.78125, 0, 0.66796875);
|
||||
frame.shine:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Alert-Glow");
|
||||
frame.shine:SetTexCoord(0.78125, 0.912109375, 0, 0.28125);
|
||||
frame.shine:SetPoint("BOTTOMLEFT", 0, 8);
|
||||
--frame.glow:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Alert-Glow");
|
||||
--frame.glow:SetTexCoord(0, 0.78125, 0, 0.66796875);
|
||||
--frame.shine:SetTexture("Interface\\AchievementFrame\\UI-Achievement-Alert-Glow");
|
||||
--frame.shine:SetTexCoord(0.78125, 0.912109375, 0, 0.28125);
|
||||
--frame.shine:SetPoint("BOTTOMLEFT", 0, 8);
|
||||
|
||||
shieldIcon:SetTexture([[Interface\AchievementFrame\UI-Achievement-Shields-NoPoints]]);
|
||||
|
||||
@@ -73,8 +83,8 @@ function MX:SendAlert(iLink,value)
|
||||
|
||||
fvalue = MX:FormatMoney(value);
|
||||
|
||||
FarmerAlert:AddAlert(itemName,fvalue);
|
||||
PlaySoundFile("Sound\\Spells\\AchievmentSound1.ogg")
|
||||
FarmerAlert:AddAlert(itemLink,fvalue);
|
||||
PlaySoundFile("Interface\\Addons\\MxW\\Media\\Sound\\register.mp3", "Master")
|
||||
end
|
||||
|
||||
local COLOR_GREY = "|cff888888"
|
||||
|
||||
Reference in New Issue
Block a user