From a7a4df98957a0bf5552c005c4f77cb6b0f6ab760 Mon Sep 17 00:00:00 2001 From: johannesveje Date: Tue, 17 Jul 2018 21:56:28 +0200 Subject: [PATCH] Added item quality color scheme I have added a color scheme that will display the item levels in colors matching the quality colors. --- modules/ItemLevel.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/ItemLevel.lua b/modules/ItemLevel.lua index ea6b937a..41813c87 100644 --- a/modules/ItemLevel.lua +++ b/modules/ItemLevel.lua @@ -172,6 +172,7 @@ function mod:GetOptions() none = L['None'], original = L['Same as InventoryItemLevels'], level = L['Related to player level'], + qualityColor = L['Same as quality colour'], }, order = 20, }, @@ -364,3 +365,13 @@ do end end end + +-- Color scheme for quality colors +do + colorSchemes.qualityColor = function(level, quality) + r, g, b, hex = GetItemQualityColor(quality) + return r,g,b + + + end +end