small change to the level column

This commit is contained in:
Manuel Simon Hirsig
2016-04-28 23:14:03 +02:00
parent f0386b2a62
commit 169ef51d93
2 changed files with 7 additions and 3 deletions
+6 -2
View File
@@ -74,7 +74,9 @@ public.search_config = {
width = 0.035,
align = 'CENTER',
set = function(cell, record)
cell:SetText(max(record.level, 1))
local display_level = max(record.level, 1)
display_level = UnitLevel('player') < record.level and RED_FONT_COLOR_CODE..display_level..FONT_COLOR_CODE_CLOSE or display_level
cell:SetText(display_level)
end,
cmp = function(record_a, record_b, desc)
return Aux.sort.compare(record_a.level, record_b.level, desc)
@@ -242,7 +244,9 @@ public.auctions_config = {
width = 0.035,
align = 'CENTER',
set = function(cell, record)
cell:SetText(max(record.level, 1))
local display_level = max(record.level, 1)
display_level = UnitLevel('player') < record.level and RED_FONT_COLOR_CODE..display_level..FONT_COLOR_CODE_CLOSE or display_level
cell:SetText(display_level)
end,
cmp = function(record_a, record_b, desc)
return Aux.sort.compare(record_a.level, record_b.level, desc)
+1 -1
View File
@@ -1,5 +1,5 @@
Aux = {
version = '2.11.5',
version = '2.11.6',
blizzard_ui_shown = false,
orig = {},
}