comparison 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
comparison
equal deleted inserted replaced
141:13d81d7faa0a 142:375059a11c1d
521 if itexture and iname then 521 if itexture and iname then
522 textured = eoi_st_textured_item_format:format (itexture, 522 textured = eoi_st_textured_item_format:format (itexture,
523 ITEM_QUALITY_COLORS[iquality].hex, iname, player.count[unique] or "") 523 ITEM_QUALITY_COLORS[iquality].hex, iname, player.count[unique] or "")
524 else 524 else
525 textured = eoi_st_textured_item_format:format ([[Interface\ICONS\INV_Misc_QuestionMark]], 525 textured = eoi_st_textured_item_format:format ([[Interface\ICONS\INV_Misc_QuestionMark]],
526 ITEM_QUALITY_COLORS[ITEM_QUALITY_COMMON].hex, 'UNKNOWN - REDISPLAY LATER', "") 526 ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_COMMON].hex, 'UNKNOWN - REDISPLAY LATER', "")
527 cache_okay = false 527 cache_okay = false
528 end 528 end
529 col2.value = textured 529 col2.value = textured
530 530
531 -- To facilitate sharing lib-st routines between EOI and this 531 -- To facilitate sharing lib-st routines between EOI and this
2453 addon:Clear(--[[verbose_p=]]true) 2453 addon:Clear(--[[verbose_p=]]true)
2454 end, 2454 end,
2455 } 2455 }
2456 2456
2457 StaticPopupDialogs["OUROL_HIST_REGEN"] = flib.StaticPopup{ 2457 StaticPopupDialogs["OUROL_HIST_REGEN"] = flib.StaticPopup{
2458 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. 2458 -- Concatenate this once at load time.
2459 text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[5].hex 2459 text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
2460 .. "%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.", 2460 .. "%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.",
2461 button1 = YES, 2461 button1 = YES,
2462 button2 = NO, 2462 button2 = NO,
2463 OnAccept = function (dialog, addon, data2) 2463 OnAccept = function (dialog, addon, data2)
2464 data2(addon) 2464 data2(addon)
2466 addon:redisplay() 2466 addon:redisplay()
2467 end, 2467 end,
2468 } 2468 }
2469 2469
2470 StaticPopupDialogs["OUROL_HIST_CLEAR"] = flib.StaticPopup{ 2470 StaticPopupDialogs["OUROL_HIST_CLEAR"] = flib.StaticPopup{
2471 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. 2471 -- Concatenate this once at load time.
2472 text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[5].hex .. "%s|r?", 2472 text = "Erase all history entries from " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex .. "%s|r?",
2473 button1 = YES, 2473 button1 = YES,
2474 button2 = NO, 2474 button2 = NO,
2475 OnAccept = function (dialog, addon, data2) 2475 OnAccept = function (dialog, addon, data2)
2476 data2(addon) 2476 data2(addon)
2477 addon:Print("Stimpy, you eeediot, you've pushed the history erase button!") 2477 addon:Print("Stimpy, you eeediot, you've pushed the history erase button!")
2478 addon:redisplay() 2478 addon:redisplay()
2479 end, 2479 end,
2480 } 2480 }
2481 2481
2482 StaticPopupDialogs["OUROL_HIST_PREEN"] = flib.StaticPopup{ 2482 StaticPopupDialogs["OUROL_HIST_PREEN"] = flib.StaticPopup{
2483 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. 2483 -- Concatenate this once at load time.
2484 text = "This will erase all but the latest " 2484 text = "This will erase all but the latest "
2485 .. ITEM_QUALITY_COLORS[ITEM_QUALITY_UNCOMMON].hex 2485 .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_UNCOMMON].hex
2486 .. "%s|r for each player on " 2486 .. "%s|r for each player on "
2487 .. ITEM_QUALITY_COLORS[5].hex .. "%s|r. " .. CONTINUE .. "?", 2487 .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
2488 .. "%s|r. " .. CONTINUE .. "?",
2488 button1 = YES, 2489 button1 = YES,
2489 button2 = NO, 2490 button2 = NO,
2490 OnShow = function (dialog, addon) 2491 OnShow = function (dialog, addon)
2491 local thistable = StaticPopupDialogs[dialog.which] 2492 local thistable = StaticPopupDialogs[dialog.which]
2492 -- StaticPopup_Resize does not take extraFrame into account, so we 2493 -- StaticPopup_Resize does not take extraFrame into account, so we
2751 return true 2752 return true
2752 end 2753 end
2753 end) 2754 end)
2754 2755
2755 t = flib.StaticPopup{ 2756 t = flib.StaticPopup{
2756 -- Concatenate this once at load time. There is no ITEM_QUALITY_LEGENDARY constant. 2757 -- Concatenate this once at load time.
2757 text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[5].hex 2758 text = "Include a snapshot of the " .. ITEM_QUALITY_COLORS[LE_ITEM_QUALITY_LEGENDARY].hex
2758 .. "CURRENT|r raid?|n|nClicking '" .. YES .. "' will allow this entry to " 2759 .. "CURRENT|r raid?|n|nClicking '" .. YES .. "' will allow this entry to "
2759 .. "appear in attendance lists, but with the roster as it is NOW, not as it " 2760 .. "appear in attendance lists, but with the roster as it is NOW, not as it "
2760 .. "was THEN. Clicking '" .. NO .."' means this kill cannot be included in " 2761 .. "was THEN. Clicking '" .. NO .."' means this kill cannot be included in "
2761 .. "attendance.|n|n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')", 2762 .. "attendance.|n|n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')",
2762 button1 = YES, -- "accept", left 2763 button1 = YES, -- "accept", left