modules/menusystem: rename correctly internal navigations sound function
This commit is contained in:
parent
1e333fc179
commit
d1c2f8634b
1 changed files with 2 additions and 2 deletions
|
@ -237,7 +237,7 @@ function Menu:setCursor(cursorid)
|
|||
end
|
||||
|
||||
function Menu:moveCursor(new_selected)
|
||||
self:playSelectSound()
|
||||
self:playNavigationSound()
|
||||
if new_selected < 1 then
|
||||
self.widget.selected = #self.widget.list + new_selected
|
||||
else
|
||||
|
@ -257,7 +257,7 @@ function Menu:setSound(soundasset)
|
|||
self.sound.asset = soundasset
|
||||
end
|
||||
|
||||
function Menu:playSelectSound()
|
||||
function Menu:playNavigationSound()
|
||||
if self.sound.active == true then
|
||||
love.audio.stop( self.sound.asset )
|
||||
self.sound.asset:setVolume(core.options.data.audio.sfx / 100)
|
||||
|
|
Loading…
Reference in a new issue