diff gui.lua @ 77:a07c9dd79f3a

Formalize the code handling unique ID collisions that turn out to not be avoidable with improv numbers. Turn on debug.comm and debug.loot with @debug@ markers.
author Farmbuyer of US-Kilrogg <farmbuyer@gmail.com>
date Mon, 11 Jun 2012 21:03:16 +0000
parents 124da015c4a2
children f8118aa5fbb8
line wrap: on
line diff
--- a/gui.lua	Fri Jun 08 08:05:37 2012 +0000
+++ b/gui.lua	Mon Jun 11 21:03:16 2012 +0000
@@ -1875,13 +1875,19 @@
 		w = mkbutton("MidS-H", [[not exactly an Easter egg, with sound]])
 		w:SetRelativeWidth(0.15)
 		w:SetCallback("OnClick", function() 
-			PlaySoundFile[[Sound\Music\WorldEvents\HordeFirepole.mp3]]
+			PlaySoundFile ([[Sound\Music\WorldEvents\HordeFirepole.mp3]], "Master")
 		end)
 		simple:AddChild(w)
 		w = mkbutton("MidS-A", [[not exactly an Easter egg, with sound]])
 		w:SetRelativeWidth(0.15)
 		w:SetCallback("OnClick", function() 
-			PlaySoundFile[[Sound\Music\WorldEvents\AllianceFirepole.mp3]]
+			PlaySoundFile ([[Sound\Music\WorldEvents\AllianceFirepole.mp3]], "Master")
+		end)
+		simple:AddChild(w)
+		w = mkbutton("SFRR", [[test]])
+		w:SetRelativeWidth(0.15)
+		w:SetCallback("OnClick", function() 
+			PlaySoundFile ([[Interface\AddOns\Ouro_Loot\sfrr.ogg]], "Master")
 		end)
 		simple:AddChild(w)
 		grp:AddChild(simple)
@@ -2663,7 +2669,7 @@
 }
 
 StaticPopupDialogs["OUROL_REMIND"] = flib.StaticPopup{
-	text = "Do you wish to activate Ouro Loot?\n\n(Hit the Escape key to close this window without clicking; Enter is the same as Activate)",
+	text = "Do you wish to activate Ouro Loot?|n|n(Hit the Escape key to close this window without clicking; Enter is the same as Activate)",
 	button1 = "Activate recording",  -- "accept", left
 	button2 = "Broadcast Only",      -- "cancel", middle
 	button3 = HELP_LABEL,            -- "alt", right
@@ -2857,10 +2863,10 @@
 	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
-			.. "CURRENT|r raid?\n\nClicking '" .. YES .. "' will allow this entry to "
+			.. "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 "
-			.. "attendance.\n\n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')",
+			.. "attendance.|n|n(Enter = '" .. YES .."', Escape = '" .. CANCEL .. "')",
 		button1 = YES,     -- "accept", left
 		button2 = NO,      -- "cancel", middle
 		button3 = CANCEL,  -- "alt", right