diff gui.lua @ 142:375059a11c1d 2.21.0

Updates for WoD. - Basic WoD changes (TOC bump, LE_* constants, etc) - The instance_abbrev table is now indexed by InstanceMapID values; the old method is still supported for transition. - Some initial placeholder values for WoD until we actually start seeing them.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Thu, 13 Nov 2014 22:12:33 -0500
parents c176359e7265
children e4bfe7a8b1c9
line wrap: on
line diff
--- a/gui.lua	Wed Mar 20 20:49:11 2013 -0400
+++ b/gui.lua	Thu Nov 13 22:12:33 2014 -0500
@@ -523,7 +523,7 @@
 						ITEM_QUALITY_COLORS[iquality].hex, iname, player.count[unique] or "")
 				else
 					textured = eoi_st_textured_item_format:format ([[Interface\ICONS\INV_Misc_QuestionMark]],
-						ITEM_QUALITY_COLORS[ITEM_QUALITY_COMMON].hex, 'UNKNOWN - REDISPLAY LATER', "")
+						ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_COMMON].hex, 'UNKNOWN - REDISPLAY LATER', "")
 					cache_okay = false
 				end
 				col2.value = textured
@@ -2455,8 +2455,8 @@
 }
 
 StaticPopupDialogs["OUROL_HIST_REGEN"] = flib.StaticPopup{
-	-- Concatenate this once at load time.  There is no ITEM_QUALITY_LEGENDARY constant.
-	text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[5].hex
+	-- Concatenate this once at load time.
+	text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
 		.. "%s|r, and generate it anew from current loot?|n|nNote this obeys the current setting of the 'Suppress history for cross-realm players' option.",
 	button1 = YES,
 	button2 = NO,
@@ -2468,8 +2468,8 @@
 }
 
 StaticPopupDialogs["OUROL_HIST_CLEAR"] = flib.StaticPopup{
-	-- Concatenate this once at load time.  There is no ITEM_QUALITY_LEGENDARY constant.
-	text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[5].hex .. "%s|r?",
+	-- Concatenate this once at load time.
+	text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex .. "%s|r?",
 	button1 = YES,
 	button2 = NO,
 	OnAccept = function (dialog, addon, data2)
@@ -2480,11 +2480,12 @@
 }
 
 StaticPopupDialogs["OUROL_HIST_PREEN"] = flib.StaticPopup{
-	-- Concatenate this once at load time.  There is no ITEM_QUALITY_LEGENDARY constant.
+	-- Concatenate this once at load time.
 	text = "This will erase all but the latest "
-		.. ITEM_QUALITY_COLORS[ITEM_QUALITY_UNCOMMON].hex
+		.. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_UNCOMMON].hex
 		.. "%s|r for each player on "
-		.. ITEM_QUALITY_COLORS[5].hex .. "%s|r.  " .. CONTINUE .. "?",
+		.. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
+		.. "%s|r.  " .. CONTINUE .. "?",
 	button1 = YES,
 	button2 = NO,
 	OnShow = function (dialog, addon)
@@ -2753,8 +2754,8 @@
 	end)
 
 	t = flib.StaticPopup{
-	-- Concatenate this once at load time.  There is no ITEM_QUALITY_LEGENDARY constant.
-		text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[5].hex
+	-- Concatenate this once at load time.
+		text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
 			.. "CURRENT|r raid?|n|nClicking '" .. YES .. "' will allow this entry to "
 			.. "appear in attendance lists, but with the roster as it is NOW, not as it "
 			.. "was THEN.  Clicking '" .. NO .."' means this kill cannot be included in "