modules/menusystem: rename correctly internal navigations sound function

This commit is contained in:
Kazhnuz 2019-04-20 17:42:04 +02:00
parent 1e333fc179
commit d1c2f8634b

View file

@ -237,7 +237,7 @@ function Menu:setCursor(cursorid)
end end
function Menu:moveCursor(new_selected) function Menu:moveCursor(new_selected)
self:playSelectSound() self:playNavigationSound()
if new_selected < 1 then if new_selected < 1 then
self.widget.selected = #self.widget.list + new_selected self.widget.selected = #self.widget.list + new_selected
else else
@ -257,7 +257,7 @@ function Menu:setSound(soundasset)
self.sound.asset = soundasset self.sound.asset = soundasset
end end
function Menu:playSelectSound() function Menu:playNavigationSound()
if self.sound.active == true then if self.sound.active == true then
love.audio.stop( self.sound.asset ) love.audio.stop( self.sound.asset )
self.sound.asset:setVolume(core.options.data.audio.sfx / 100) self.sound.asset:setVolume(core.options.data.audio.sfx / 100)