Skip to content

Commit

Permalink
Fix PlaySound issue with WoW 7.3.x
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyball committed Feb 7, 2018
1 parent df9bf12 commit 0970bff
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion tekKonfig/tekKonfigCheckbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tekKonfig/tekKonfigDropdown.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tekKonfig/tekKonfigScroll.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand Down

0 comments on commit 0970bff

Please sign in to comment.