feat: add a way to apply volume
This commit is contained in:
parent
99952487a9
commit
d3350e3938
1 changed files with 4 additions and 0 deletions
|
@ -54,6 +54,10 @@ function MusicManager:haveMusic()
|
|||
return (self.musics[1] ~= nil)
|
||||
end
|
||||
|
||||
function MusicManager:applyVolume()
|
||||
self.musics[1]:setVolume(self.core.options.data.audio.music / 100)
|
||||
end
|
||||
|
||||
function MusicManager:playMusic()
|
||||
if (self:haveMusic()) then
|
||||
self.musics[1]:setVolume(self.core.options.data.audio.music / 100)
|
||||
|
|
Loading…
Reference in a new issue