Commit 28134283 authored by Aftermathhqt's avatar Aftermathhqt

Updates from Classic to Retail to mirror each other.

parent d3de52de
......@@ -2,7 +2,7 @@
## Title: A|cff99CCFFftermathhUI|r
## Author: Aftermathh
## Notes: Lightweight user interface.
## Version: 10.28
## Version: 10.29
## SavedVariables: AftermathhUI_Data
## SavedVariablesPerCharacter: AftermathhUI_DataPerChar
......
......@@ -16,8 +16,8 @@ C["General"] = {
-- Color Settings
["BorderColor"] = { 0, 0, 0, 1 },
["BackdropColor"] = { 0.1, 0.1, 0.1, 0.70 },
["PanelColor"] = { 0.2, 0.2, 0.2, 0.80 },
["ShadowColor"] = { 0.055, 0.055, 0.055, 0.50 },
["PanelColor"] = { 0.2, 0.2, 0.2, 0.70 },
["ShadowColor"] = { 0.050, 0.050, 0.050, 0.80 },
}
C["ActionBars"] = {
......@@ -122,7 +122,7 @@ C["UnitFrames"] = {
-- Castbar
["CastBarMod"] = true,
["CastBarColor"] = { 0.1, 0.1, 0.1, 0.1 },
["CastBarColor"] = { 0.1, 0.1, 0.1, 0.70 },
["InterruptColor"] = { 170/255, 10/255, 10/255, 0.70 },
-- Raid Frames
......
......@@ -88,18 +88,6 @@ local function DisablePixelSnap(self)
end
end
--------------------
-- Fade Functions --
--------------------
local function SetFadeInTemplate(self, FadeTime, Alpha)
securecall(UIFrameFadeIn, self, FadeTime, self:GetAlpha(), Alpha)
end
local function SetFadeOutTemplate(self, FadeTime, Alpha)
securecall(UIFrameFadeOut, self, FadeTime, self:GetAlpha(), Alpha)
end
--------------------
-- Font Templates --
--------------------
......@@ -111,7 +99,7 @@ local function SetFontTemplate(self, FontTemplate, FontSize, ShadowOffsetX, Shad
self:SetFont(C.Media.FontPixel, A:Scale(FontSize or 9), "THINOUTLINE, MONOCHROME")
end
self:SetShadowColor(0, 0, 0, 0.5)
self:SetShadowColor(0, 0, 0, 0.25)
self:SetShadowOffset(A:Scale(ShadowOffsetX or 1), -A:Scale(ShadowOffsetY or 1))
end
......@@ -340,7 +328,7 @@ local function CreateShadow(self, ShadowScale)
local Shadow = CreateFrame("Frame", nil, self)
Shadow:SetFrameStrata("BACKGROUND")
Shadow:SetFrameLevel(0)
Shadow:SetOutside(self, 3, 3)
Shadow:SetOutside(self, 2, 2)
Shadow:SetBackdrop({
edgeFile = C.Media.Shadow, edgeSize = A:Scale(3),
})
......@@ -475,13 +463,13 @@ function PixelIcon(self, Texture, Highlight)
end
end
local function SetShadowOverlay(self, ShadowOverlayWidth, ShadowOverlayHeight, ShadowOverlayAlpha)
local function SetShadowOverlay(self, ShadowOverlayAlpha)
if (self.ShadowOverlay) then
return
end
local ShadowOverlay = self:CreateTexture(nil, "OVERLAY")
ShadowOverlay:Size(ShadowOverlayWidth, ShadowOverlayHeight)
ShadowOverlay:Size(self:GetWidth(), self:GetHeight())
ShadowOverlay:SetInside()
ShadowOverlay:SetTexture(C.Media.BorderOverlay)
ShadowOverlay:SetVertexColor(1, 1, 1, ShadowOverlayAlpha or 0.50)
......@@ -887,14 +875,8 @@ local function AddAPI(object)
-- Kill
if not object.Kill then mt.Kill = Kill end
if not object.StripTexture then mt.StripTexture = StripTexture end
-- Fade Functions
if not object.SetFadeInTemplate then mt.SetFadeInTemplate = SetFadeInTemplate end
if not object.SetFadeOutTemplate then mt.SetFadeOutTemplate = SetFadeOutTemplate end
-- Font
if not object.SetFontTemplate then mt.SetFontTemplate = SetFontTemplate end
-- Size & Point
if not object.Size then mt.Size = Size end
if not object.Width then mt.Width = Width end
......@@ -902,14 +884,12 @@ local function AddAPI(object)
if not object.Point then mt.Point = Point end
if not object.SetOutside then mt.SetOutside = SetOutside end
if not object.SetInside then mt.SetInside = SetInside end
-- Borders & Backdrop
if not object.SetTemplate then mt.SetTemplate = SetTemplate end
if not object.SetColorTemplate then mt.SetColorTemplate = SetColorTemplate end
if not object.CreateBackdrop then mt.CreateBackdrop = CreateBackdrop end
if not object.CreateShadow then mt.CreateShadow = CreateShadow end
if not object.CreateGlow then mt.CreateGlow = CreateGlow end
-- ActionBars
if not object.CreateButtonPanel then mt.CreateButtonPanel = CreateButtonPanel end
if not object.CreateButtonBackdrop then mt.CreateButtonBackdrop = CreateButtonBackdrop end
......@@ -917,10 +897,8 @@ local function AddAPI(object)
if not object.StyleButtonHighlight then mt.StyleButtonHighlight = StyleButtonHighlight end
if not object.PixelIcon then mt.PixelIcon = PixelIcon end
if not object.SetShadowOverlay then mt.SetShadowOverlay = SetShadowOverlay end
-- Misc
if not object.CreateSpark then mt.CreateSpark = CreateSpark end
-- Skining
if not object.SkinButton then mt.SkinButton = SkinButton end
if not object.StripButton then mt.StripButton = StripButton end
......@@ -931,7 +909,6 @@ local function AddAPI(object)
if not object.SkinDropDown then mt.SkinDropDown = SkinDropDown end
if not object.SkinCheckBox then mt.SkinCheckBox = SkinCheckBox end
if not object.SkinScrollBar then mt.SkinScrollBar = SkinScrollBar end
-- Dev Stuff
if not object.GetNamedChild then mt.GetNamedChild = GetNamedChild end
end
......
......@@ -5,37 +5,27 @@ function Loading:OnEvent(event)
if (event == "PLAYER_LOGIN") then
-- AFK
A["AFK"]:Enable()
-- PANELS
A["Panels"]:Enable()
-- UNITFRAMES
A["UnitFrames"]:Enable()
-- ACTIONBARS
A["ActionBars"]:Enable()
-- AURAS
A["Auras"]:Enable()
-- CHAT
A["Chat"]:Enable()
-- INVENTORY
A["Inventory"]["Bags"]:Enable()
A["Inventory"]["Merchant"]:Enable()
-- LOOT
A["Loot"]:Enable()
A["GroupLoot"]:Enable()
-- TOOLTIP
A["Tooltip"]:Enable()
-- MAPS
A["Maps"]["Minimaps"]:Enable()
A["Maps"]["Coords"]:Enable()
-- DATA TEXTS
A["DataTexts"]["Bags"]:Enable()
A["DataTexts"]["Crit"]:Enable()
......@@ -46,7 +36,6 @@ function Loading:OnEvent(event)
A["DataTexts"]["System"]:Enable()
A["DataTexts"]["Talents"]:Enable()
A["DataTexts"]["Time"]:Enable()
-- DATA BARS
A["DataBars"]["AltPowerBar"]:Enable()
A["DataBars"]["Azerite"]:Enable()
......@@ -57,7 +46,6 @@ function Loading:OnEvent(event)
A["DataBars"]["ReputationBar"]:Enable()
A["DataBars"]["RuneBar"]:Enable()
A["DataBars"]["StaggerBar"]:Enable()
-- MISC
A["Misc"]["AlertFrameMovers"]:Enable()
A["Misc"]["Durability"]:Enable()
......@@ -71,7 +59,6 @@ function Loading:OnEvent(event)
A["Misc"]["TimeTrackers"]:Enable()
A["Misc"]["UIWidgets"]:Enable()
A["Misc"]["VehicleIndicator"]:Enable()
-- SKINS
A["Skins"]["Archaeology"]:Enable()
A["Skins"]["ChatBubbles"]:Enable()
......
This diff is collapsed.
--[[
## Animation for Fade In/Out from ElvUI.
## https://git.tukui.org/elvui/elvui
## A:UIFrameFadeIn(Frame, TimeToFade, self:GetAlpha() or StartAlpha, EndAlpha)
## A:UIFrameFadeOut(Frame, TimeToFade, self:GetAlpha() or StartAlpha, EndAlpha)
--]]
local A, C, L = select(2, ...):unpack()
-- Lib Globals
local select = select
local unpack = unpack
local next = next
local FADEFRAMES, FADEMANAGER = {}, CreateFrame('FRAME')
FADEMANAGER.delay = 0
function A:UIFrameFade_OnUpdate(elapsed)
FADEMANAGER.timer = (FADEMANAGER.timer or 0) + elapsed
if FADEMANAGER.timer > FADEMANAGER.delay then
FADEMANAGER.timer = 0
for frame, info in next, FADEFRAMES do
-- Reset the timer if there isn't one, this is just an internal counter
if frame:IsVisible() then
info.fadeTimer = (info.fadeTimer or 0) + (elapsed + FADEMANAGER.delay)
else
info.fadeTimer = info.timeToFade + 1
end
-- If the fadeTimer is less then the desired fade time then set the alpha otherwise hold the fade state, call the finished function, or just finish the fade
if info.fadeTimer < info.timeToFade then
if info.mode == 'IN' then
frame:SetAlpha((info.fadeTimer / info.timeToFade) * info.diffAlpha + info.startAlpha)
else
frame:SetAlpha(((info.timeToFade - info.fadeTimer) / info.timeToFade) * info.diffAlpha + info.endAlpha)
end
else
frame:SetAlpha(info.endAlpha)
-- If there is a fadeHoldTime then wait until its passed to continue on
if info.fadeHoldTime and info.fadeHoldTime > 0 then
info.fadeHoldTime = info.fadeHoldTime - elapsed
else
-- Complete the fade and call the finished function if there is one
A:UIFrameFadeRemoveFrame(frame)
if info.finishedFunc then
if info.finishedArgs then
info.finishedFunc(unpack(info.finishedArgs))
else -- optional method
info.finishedFunc(info.finishedArg1, info.finishedArg2, info.finishedArg3, info.finishedArg4, info.finishedArg5)
end
if not info.finishedFuncKeep then
info.finishedFunc = nil
end
end
end
end
end
if not next(FADEFRAMES) then
FADEMANAGER:SetScript('OnUpdate', nil)
end
end
end
-- Generic fade function
function A:UIFrameFade(frame, info)
if not frame or frame:IsForbidden() then return end
frame.fadeInfo = info
if not info.mode then
info.mode = 'IN'
end
if info.mode == 'IN' then
if not info.startAlpha then info.startAlpha = 0 end
if not info.endAlpha then info.endAlpha = 1 end
if not info.diffAlpha then info.diffAlpha = info.endAlpha - info.startAlpha end
else
if not info.startAlpha then info.startAlpha = 1 end
if not info.endAlpha then info.endAlpha = 0 end
if not info.diffAlpha then info.diffAlpha = info.startAlpha - info.endAlpha end
end
frame:SetAlpha(info.startAlpha)
if not frame:IsProtected() then
frame:Show()
end
if not FADEFRAMES[frame] then
FADEFRAMES[frame] = info -- read below comment
FADEMANAGER:SetScript('OnUpdate', A.UIFrameFade_OnUpdate)
else
FADEFRAMES[frame] = info -- keep these both, we need this updated in the event its changed to another ref from a plugin or sth, don't move it up!
end
end
-- Convenience function to do a simple fade in
function A:UIFrameFadeIn(frame, timeToFade, startAlpha, endAlpha)
if not frame or frame:IsForbidden() then return end
if frame.FadeObject then
frame.FadeObject.fadeTimer = nil
else
frame.FadeObject = {}
end
frame.FadeObject.mode = 'IN'
frame.FadeObject.timeToFade = timeToFade
frame.FadeObject.startAlpha = startAlpha
frame.FadeObject.endAlpha = endAlpha
frame.FadeObject.diffAlpha = endAlpha - startAlpha
A:UIFrameFade(frame, frame.FadeObject)
end
-- Convenience function to do a simple fade out
function A:UIFrameFadeOut(frame, timeToFade, startAlpha, endAlpha)
if not frame or frame:IsForbidden() then return end
if frame.FadeObject then
frame.FadeObject.fadeTimer = nil
else
frame.FadeObject = {}
end
frame.FadeObject.mode = 'OUT'
frame.FadeObject.timeToFade = timeToFade
frame.FadeObject.startAlpha = startAlpha
frame.FadeObject.endAlpha = endAlpha
frame.FadeObject.diffAlpha = startAlpha - endAlpha
A:UIFrameFade(frame, frame.FadeObject)
end
function A:UIFrameFadeRemoveFrame(frame)
if frame and FADEFRAMES[frame] then
if frame.FadeObject then
frame.FadeObject.fadeTimer = nil
end
FADEFRAMES[frame] = nil
end
end
\ No newline at end of file
......@@ -5,7 +5,6 @@
]]
local A, C, L = select(2, ...):unpack()
local LibAnimSmooth = CreateFrame("Frame")
-- Lib Globals
......@@ -15,6 +14,24 @@ local abs = math.abs
-- Locals
LibAnimSmooth.Bars = {}
LibAnimSmooth:SetScript("OnUpdate", function()
for Frame, Value in pairs(LibAnimSmooth.Bars) do
local CurrentValue = Frame:GetValue()
local NewValue = CurrentValue + ((Value - CurrentValue) / 3)
if (NewValue ~= NewValue) then
NewValue = Value
end
if (CurrentValue == Value or abs(NewValue - Value) < 2) then
Frame:SetNewValue(Value)
LibAnimSmooth.Bars[Frame] = nil
else
Frame:SetNewValue(NewValue)
end
end
end)
function LibAnimSmooth:SetSmoothValue(Value)
if (Value ~= self:GetValue() or Value == 0) then
LibAnimSmooth.Bars[self] = Value
......@@ -42,24 +59,4 @@ function LibAnimSmooth:ResetSmooth(self)
end
end
LibAnimSmooth:SetScript("OnUpdate", function()
for Frame, Value in pairs(LibAnimSmooth.Bars) do
local CurrentValue = Frame:GetValue()
local NewValue = CurrentValue + ((Value - CurrentValue) / 3)
if (NewValue ~= NewValue) then
NewValue = Value
end
if (CurrentValue == Value or abs(NewValue - Value) < 2) then
Frame:SetNewValue(Value)
LibAnimSmooth.Bars[Frame] = nil
else
Frame:SetNewValue(NewValue)
--Frame:SetNewValue(Value)
--LibAnimSmooth.Bars[Frame] = nil
end
end
end)
A["LibAnimSmooth"] = LibAnimSmooth
\ No newline at end of file
......@@ -8,10 +8,17 @@
<Script file="Ace3\AceComm-3.0\AceComm-3.0.lua"/>
<!-- LibSharedMedia-3.0 -->
<Script file="LibSharedMedia-3.0\LibSharedMedia-3.0.lua"/>
<!-- Libs Plugins -->
<!-- LibAnim -->
<Script file="LibAnim-2.0\LibAnim-2.0.lua"/>
<Script file="LibAnimGainLoss-1.0\LibAnimGainLoss-1.0.lua"/>
<!-- LibAnimFadeInOut -->
<Script file="LibAnimFadeInOut-1.0\LibAnimFadeInOut-1.0.lua"/>
<!-- LibAnimSmooth -->
<Script file="LibAnimSmooth-1.0\LibAnimSmooth-1.0.lua"/>
<!-- LibAnimGainLoss -->
<Script file="LibAnimGainLoss-1.0\LibAnimGainLoss-1.0.lua"/>
<!-- LibSharedMedia-3.0 -->
<Script file="LibSharedMedia-3.0\LibSharedMedia-3.0.lua"/>
<!-- LibSpellRange-1.0 -->
<Script file="LibSpellRange-1.0\LibSpellRange-1.0.lua"/>
<!-- oUF Core -->
<Include file="oUF\oUF.xml"/>
......
This diff is collapsed.
......@@ -4,7 +4,7 @@ local M = [[Interface\AddOns\AftermathhUI\Media\]]
C["Media"] = {
-- Fonts
["Font"] = M..[[Fonts\AftermathhUI.ttf]],
["Font"] = M..[[Fonts\Aftermathh.ttf]],
["FontPixel"] = M..[[Fonts\ElvUI.ttf]],
-- Textures
["Blank"] = [[Interface\Buttons\WHITE8x8]],
......@@ -28,7 +28,7 @@ C["Media"] = {
}
-- FONTS --
LSM:Register("font", "AftermathhUI", M..[[Fonts\AftermathhUI.ttf]])
LSM:Register("font", "Aftermathh", M..[[Fonts\Aftermathh.ttf]])
LSM:Register("font", "Naowh", M..[[Fonts\Naowh.ttf]])
LSM:Register("font", "Duffed", M..[[Fonts\Duffed.ttf]])
LSM:Register("font", "FreeUI", M..[[Fonts\FreeUI.ttf]])
......
......@@ -48,8 +48,8 @@ function AFK:SetAFK(status)
if (status) then
ShowUIPanel(WorldMapFrame)
A:UIFrameFadeIn(self.Frame, 1, self.Frame:GetAlpha(), 1)
UIParent:Hide()
UIFrameFadeIn(self.Frame, 1, self.Frame:GetAlpha(), 1)
self:SetScript("OnUpdate", self.OnUpdate)
......@@ -59,7 +59,7 @@ function AFK:SetAFK(status)
HideUIPanel(WorldMapFrame)
UIFrameFadeOut(self.Frame, 1, self.Frame:GetAlpha(), 0)
A:UIFrameFadeOut(self.Frame, 1, self.Frame:GetAlpha(), 0)
UIParent:Show()
self:SetScript("OnUpdate", nil)
......
......@@ -76,7 +76,7 @@ function CustomActionBars:CreateExtraActionButton()
Button:CreateButtonPanel()
Button:CreateShadow()
Button:StyleButton()
Button:SetShadowOverlay(Button:GetWidth(), Button:GetHeight())
Button:SetShadowOverlay()
self.IsSkinned = true
end
......
......@@ -79,7 +79,7 @@ function CustomActionBars:SkinButton()
Button:CreateButtonPanel()
Button:CreateShadow()
Button:StyleButton()
Button:SetShadowOverlay(Button:GetWidth(), Button:GetHeight())
Button:SetShadowOverlay()
Button.IsSkinned = true
end
......@@ -125,7 +125,7 @@ function CustomActionBars:SkinPetAndShiftButton(Normal, Button, Icon, Name, Pet)
Button:CreateButtonPanel()
Button:CreateShadow()
Button:StyleButton()
Button:SetShadowOverlay(Button:GetWidth(), Button:GetHeight())
Button:SetShadowOverlay()
Button.IsSkinned = true
end
......
......@@ -70,7 +70,7 @@ function CustomActionBars:CreateBar()
Button:StyleButtonHighlight()
Button:SetTemplate()
Button:CreateShadow()
Button:SetShadowOverlay(IconSize, IconSize)
Button:SetShadowOverlay()
Button:SetScript("OnEnter", function(self)
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
......
......@@ -12,12 +12,12 @@ local UIParent = UIParent
local InCombatLockdown = InCombatLockdown
function CustomActionBars:OnEnter()
self:SetFadeInTemplate(1, 1)
A:UIFrameFadeIn(self, 1, self:GetAlpha(), 1)
self.Backdrop:SetColorTemplate(unpack(A.GetClassColors))
end
function CustomActionBars:OnLeave()
self:SetFadeOutTemplate(1, 0)
A:UIFrameFadeOut(self, 1, self:GetAlpha(), 0)
self.Backdrop:SetColorTemplate(unpack(C.General.BorderColor))
end
......
......@@ -29,7 +29,7 @@ function CustomActionBars:CreateVehicleExitButton()
VehicleExitButton.Panel:SetPoint("CENTER", VehicleExitButton, 0, 0)
VehicleExitButton.Panel:SetTemplate()
VehicleExitButton.Panel:CreateShadow()
VehicleExitButton.Panel:SetShadowOverlay(28, 28)
VehicleExitButton.Panel:SetShadowOverlay()
local VehicleExitButton2 = CreateFrame("Button", nil, UIParent)
VehicleExitButton2:SetSize(41, 39)
......@@ -43,7 +43,7 @@ function CustomActionBars:CreateVehicleExitButton()
VehicleExitButton2.Panel:SetPoint("CENTER", VehicleExitButton2, 0, 0)
VehicleExitButton2.Panel:SetTemplate()
VehicleExitButton2.Panel:CreateShadow()
VehicleExitButton2.Panel:SetShadowOverlay(28, 28)
VehicleExitButton2.Panel:SetShadowOverlay()
VehicleExitButton:RegisterEvent("PLAYER_ENTERING_WORLD")
VehicleExitButton:RegisterEvent("UPDATE_BONUS_ACTIONBAR")
......
......@@ -221,7 +221,7 @@ function CustomAuras:Skin()
self:SetTemplate()
self:CreateShadow()
self:StyleButton()
self:SetShadowOverlay(self:GetWidth(), self:GetHeight())
self:SetShadowOverlay()
self.Icon = Icon
self.Duration = Duration
......
......@@ -394,8 +394,8 @@ function CustomChat:CreateCopyButtons()
ButtonTexture:SetVertexColor(0.5, 0.5, 0.5)
Button:SetScript("OnMouseUp", OnMouseUp)
Button:SetScript("OnEnter", function(self) self:SetFadeInTemplate(1, 1)end)
Button:SetScript("OnLeave", function(self) self:SetFadeOutTemplate(1, 0.25) end)
Button:SetScript("OnEnter", function(self) A:UIFrameFadeIn(self, 1, self:GetAlpha(), 1) end)
Button:SetScript("OnLeave", function(self) A:UIFrameFadeOut(self, 1, self:GetAlpha(), 0.25) end)
Button.ChatFrame = Frame
end
......
......@@ -154,9 +154,9 @@ function ClassPowerBar:Update()
self.Backdrop[i]:Size(213/Max, 12)
if (i <= Min) then
self.Bar[i]:SetFadeInTemplate(0.25, 1)
A:UIFrameFadeIn(self.Bar[i], 0.25, self.Bar[i]:GetAlpha(), 1)
else
self.Bar[i]:SetFadeOutTemplate(0.25, 0)
A:UIFrameFadeOut(self.Bar[i], 0.25, self.Bar[i]:GetAlpha(), 0)
end
end
end
......
......@@ -9,7 +9,7 @@ function CustomFonts:SetFont(Font, FontSize, FontStyle, ShadowOffsetX, ShadowOff
self:SetFont(Font, FontSize, FontStyle)
if (ShadowOffsetX and ShadowOffsetY) then
self:SetShadowColor(0, 0, 0, 0.5)
self:SetShadowColor(0, 0, 0, 0.25)
self:SetShadowOffset(A:Scale(ShadowOffsetX), A:Scale(ShadowOffsetY))
end
......
......@@ -51,6 +51,7 @@ function CustomBags:SkinBagButton()
local BattlePay = Button.BattlepayItemTexture
local Icon = _G[Name.."IconTexture"]
local Count = _G[Name.."Count"]
local Cooldown = _G[Name.."Cooldown"]
if not (Button.IsSkinned) then
if (Border) then Border:Kill() end
......@@ -73,10 +74,14 @@ function CustomBags:SkinBagButton()
Button:CreateButtonBackdrop()
Button:CreateShadow()
Button:StyleButton()
Button:SetShadowOverlay(Button:GetWidth(), Button:GetHeight())
Button:SetShadowOverlay()
Button.IsSkinned = true
end
if (Cooldown) then
A:RegisterCooldowns(Cooldown)
end
end
function CustomBags:HideBlizzard()
......@@ -292,7 +297,7 @@ function CustomBags:CreateContainer(storagetype, ...)
Button:SkinButton()
Button:SetPushedTexture("")
Button.SlotHighlightTexture:Kill()
Button:SetShadowOverlay(ButtonSize, ButtonSize)
Button:SetShadowOverlay()
Button:StyleButtonHighlight()
Button.IconBorder:SetAlpha(0)
......@@ -378,7 +383,7 @@ function CustomBags:CreateContainer(storagetype, ...)
Bag:ClearAllPoints()
Bag:Size(ButtonSize, ButtonSize)
Bag:SkinButton()
Bag:SetShadowOverlay(ButtonSize, ButtonSize)
Bag:SetShadowOverlay()
Bag:StyleButtonHighlight()
Bag:SetPushedTexture("")
Bag.SlotHighlightTexture:Kill()
......@@ -469,16 +474,6 @@ function CustomBags:SkinTokens()
end
end
local function IsItemEligibleForItemLevelDisplay(classID, subClassID, equipLoc, rarity)
if ((classID == 3 and subClassID == 11) --Artifact Relics