diff --git a/Config.lua b/Config.lua index ef36a8d..aff972a 100644 --- a/Config.lua +++ b/Config.lua @@ -83,7 +83,7 @@ frame:SetScript("OnShow", function() local function OnClick(self) Cork.dbpc[self.name.."-enabled"] = not Cork.dbpc[self.name.."-enabled"] - PlaySound(Cork.dbpc[self.name.."-enabled"] and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff") + PlaySound(Cork.dbpc[self.name.."-enabled"] and SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON or SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF) self.cork:Scan() end diff --git a/tekKonfig/tekKonfigCheckbox.lua b/tekKonfig/tekKonfigCheckbox.lua index af60d7a..fd303f1 100644 --- a/tekKonfig/tekKonfigCheckbox.lua +++ b/tekKonfig/tekKonfigCheckbox.lua @@ -14,7 +14,7 @@ local function ShowTooltip(self) GameTooltip:SetHyperlink(self.tiplink) end end -local function OnClick(self) PlaySound(self:GetChecked() and "igMainMenuOptionCheckBoxOn" or "igMainMenuOptionCheckBoxOff") end +local function OnClick(self) PlaySound(self:GetChecked() and SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON or SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_OFF) end -- Creates a checkbox. diff --git a/tekKonfig/tekKonfigDropdown.lua b/tekKonfig/tekKonfigDropdown.lua index 2ff43ab..3943839 100644 --- a/tekKonfig/tekKonfigDropdown.lua +++ b/tekKonfig/tekKonfigDropdown.lua @@ -17,7 +17,7 @@ local function ShowTooltip2(self) ShowTooltip(self.container) end local function OnClick(self) ToggleDropDownMenu(nil, nil, self:GetParent()) - PlaySound("igMainMenuOptionCheckBoxOn") + PlaySound(SOUNDKIT.IG_MAINMENU_OPTION_CHECKBOX_ON) end local function OnHide() CloseDropDownMenus() end diff --git a/tekKonfig/tekKonfigScroll.lua b/tekKonfig/tekKonfigScroll.lua index ff69b13..6c448f0 100644 --- a/tekKonfig/tekKonfigScroll.lua +++ b/tekKonfig/tekKonfigScroll.lua @@ -36,7 +36,7 @@ function lib.new(parent, offset, step) up:SetScript("OnClick", function(self) local parent = self:GetParent() parent:SetValue(parent:GetValue() - (step or parent:GetHeight()/2)) - PlaySound("UChatScrollButton") + PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON) end) local down = CreateFrame("Button", nil, f) @@ -56,7 +56,7 @@ function lib.new(parent, offset, step) down:SetScript("OnClick", function(self) local parent = self:GetParent() parent:SetValue(parent:GetValue() + (step or parent:GetHeight()/2)) - PlaySound("UChatScrollButton") + PlaySound(SOUNDKIT.U_CHAT_SCROLL_BUTTON) end) f:SetThumbTexture("Interface\\Buttons\\UI-ScrollBar-Knob")