@@ -596,6 +596,30 @@ local function PlayQuestSound()
596596 if PlaySound then pcall (PlaySound , id , " Master" ) end
597597end
598598
599+ -- TEMPORARY: /cqi sound plays candidate sounds one by one, to pick a better list for the menu
600+ -- (some may not exist on this client and stay silent). Remove once the list is chosen.
601+ local SoundAudition
602+ do
603+ local candidates = {
604+ { 878 , " Quest complete" }, { 875 , " Quest log open" }, { 847 , " Quest failed" }, { 888 , " Level up" },
605+ { 8960 , " Ready check" }, { 8959 , " Raid warning" }, { 3175 , " Map ping" }, { 3081 , " Whisper" },
606+ { 12867 , " Alarm clock 2" }, { 12889 , " Alarm clock 3" }, { 416 , " Murloc" }, { 120 , " Coins" },
607+ { 5274 , " Auction house open" }, { 8458 , " PvP queue" }, { 8459 , " PvP queue ready" }, { 880 , " Group invite" },
608+ { 18019 , " Battle.net toast" }, { 31578 , " Epic loot toast" }, { 44295 , " World quest complete" },
609+ { 23404 , " Dig site complete" }, { 12891 , " Achievement" }, { 3337 , " Mail" }, { 1204 , " Auction close" },
610+ { 6674 , " Bell toll" },
611+ }
612+ local index = 0
613+ function SoundAudition (arg )
614+ index = tonumber (arg ) or (index % # candidates + 1 )
615+ local c = candidates [index ]
616+ if not c then return end
617+ if PlaySound then pcall (PlaySound , c [1 ], " Master" ) end
618+ print (string.format (" |cffffd200%s|r sound %d/%d: %s (%d). Type /cqi sound for the next one, or /cqi sound <number>." ,
619+ TITLE , index , # candidates , c [2 ], c [1 ]))
620+ end
621+ end
622+
599623local function RebuildObjectiveTexts ()
600624 wipe (objectiveTexts )
601625 if not (C_QuestLog and C_QuestLog .GetQuestObjectives ) then return end
@@ -2410,6 +2434,8 @@ SlashCmdList.CSCODERQUESTINDICATOR = function(msg)
24102434 ApplySettings ()
24112435 RefreshControls ()
24122436 print (" |cffffd200" .. TITLE .. " |r " .. (db .active and L .ON or L .OFF ))
2437+ elseif cmd == " sound" then
2438+ SoundAudition ((msg or " " ):match (" ^%S+%s+(%d+)" ))
24132439 elseif cmd == " setup" then
24142440 ShowWizard ()
24152441 elseif cmd == " plate" then
0 commit comments