diff options.lua @ 151:42dd3076baaf

Initial attempt at tracking bonus rolls and non-loot items. Add more loot-catching patterns, and generalize them a little more. Bonus rolls are tracked by default, non-loot stuff is not. Bonus rolls don't seem to be working, but non-loot definitely is. (It may be that the patterns for bonus rolls are not actually used by the game client, or rather, that the game client does not issue those events for bonus rolls which are not your own. I have yet to win a bonus roll since implementing the code, but one person in LFR claimed to win a bonus item which simply wasn't visible to me at all. More data needed.)
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Fri, 09 Jan 2015 19:14:56 -0500
parents 113dd7c86222
children b79b1cb6d057
line wrap: on
line diff
--- a/options.lua	Thu Jan 08 16:03:55 2015 -0500
+++ b/options.lua	Fri Jan 09 19:14:56 2015 -0500
@@ -164,6 +164,25 @@
 		[[Irreverent replacement names for boss events.  See abbreviations.lua for details.]])
 	container:AddChild(w)
 
+	-- (try to) track bonus loot
+	-- For the texture coordinates, see EncounterJournal_SetFlagIcon() and
+	-- http://wow.gamepedia.com/API_EJ_GetSectionInfo
+	w = mktoggle('track_bonusrolls', "Track loot from bonus rolls", stdw,
+		[[Track items received from spending roll tokens (e.g., Seal of Fate).]]
+		.. [[  |cff00ff00Experimental!  May only work when rebroadcast.|r]])
+	--w:SetImage([[Interface\EncounterJournal\UI-EJ-Icons]],
+		-- This is "ID 6", the interruptible lightning icon
+		--0.75, (0.75 + (1/8)), 0, 0.5)
+		-- This is "ID 7", the heroic/skull
+		--3/8, 0.5, 0, 0.5)
+	w:SetImage([[Interface\Scenarios\ScenarioIcon-Boss]])
+	container:AddChild(w)
+
+	-- track receiving arbitrary items
+	w = mktoggle('track_nonloot', "Track non-loot items", stdw,
+		[[Track items received from the mailbox, salvage bags, lockboxes...]])
+	container:AddChild(w)
+
 	-- auto-GOP mode when in LFR
 	w = mktoggle('history_suppress_LFR', "Suppress history in LFR", stdw,
 		[[Do not record anything at all in the History tab while in an LFR raid.  Changes only take effect outside of LFR.]])