Quantcast

Account for changes in PlaySound

Darth Predator [08-04-17 - 14:09]
Account for changes in PlaySound
Filename
ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
ElvUI_SLE/modules/pvp.lua
diff --git a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
index 38a55d4..26a7127 100644
--- a/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
+++ b/ElvUI_SLE/modules/Armory/InspectArmory/InspectArmory.lua
@@ -3,6 +3,7 @@ local SLE, T, E, L, V, P, G = unpack(select(2, ...))
 local KF, Info, Timer = unpack(ElvUI_KnightFrame)
 local _G = _G
 local _
+local SOUNDKIT = SOUNDKIT

 --GLOBALS: CreateFrame, SLE_ArmoryDB, NotifyInspect, InspectUnit, UIParent, hooksecurefunc, UIDROPDOWNMENU_MENU_LEVEL
 local NUM_TALENT_COLUMNS,MAX_TALENT_GROUPS = NUM_TALENT_COLUMNS,MAX_TALENT_GROUPS
@@ -383,7 +384,7 @@ function IA:CreateInspectFrame()
 		self:SetClampedToScreen(true)
 		self:Point('CENTER', E.UIParent)
 		self:SetScript('OnHide', function()
-			PlaySound('igCharacterInfoClose')
+			PlaySound(SOUNDKIT.IG_CHARACTER_INFO_CLOSE)

 			if self.CurrentInspectData.Name then
 				local TableIndex = self.CurrentInspectData.Name..(IA.CurrentInspectData.Realm and IA.CurrentInspectData.Realm ~= '' and IA.CurrentInspectData.Realm ~= Info.MyRealm and '-'..IA.CurrentInspectData.Realm or '')
@@ -584,7 +585,7 @@ function IA:CreateInspectFrame()
 			_G["GameTooltip"]:Hide()
 		end)
 		self.TransmogViewButton:SetScript("OnClick", function(self)
-			PlaySound("igMainMenuOptionCheckBoxOn");
+			PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON);
 			DressUpSources(C_TransmogCollection.GetInspectSources());
 		end)
 	end
diff --git a/ElvUI_SLE/modules/pvp.lua b/ElvUI_SLE/modules/pvp.lua
index 9a0f241..487ca83 100644
--- a/ElvUI_SLE/modules/pvp.lua
+++ b/ElvUI_SLE/modules/pvp.lua
@@ -20,6 +20,8 @@ local BossBanner_BeginAnims = BossBanner_BeginAnims
 local PlaySound = PlaySound
 local CancelPetPVPDuel = C_PetBattles.CancelPVPDuel

+local SOUNDKIT = SOUNDKIT
+
 function PvP:Release()
 	if (PvP.db.rebirth and not HasSoulstone()) or not PvP.db.rebirth then RepopMe() end
 end
@@ -116,7 +118,7 @@ function PvP:Initialize()
 					self.SubTitle:Hide();
 					self:Show();
 					BossBanner_BeginAnims(self);
-					if E.private.sle.pvp.KBbanner.sound then PlaySound("UI_Raid_Boss_Defeated") end
+					if E.private.sle.pvp.KBbanner.sound then PlaySound(SOUNDKIT.UI_RAID_BOSS_DEFEATED) end
 				end
 			end
 		end)