diff --git a/gamecore/modules/menusystem/init.lua b/gamecore/modules/menusystem/init.lua index e6b4010..5a3a6d2 100644 --- a/gamecore/modules/menusystem/init.lua +++ b/gamecore/modules/menusystem/init.lua @@ -144,6 +144,18 @@ end -- SOUND FUNCTIONS -- Add sounds to every menus +function MenuSystem:setSoundFromSceneAssets(soundname) + for k,v in pairs(self.menus) do + v:setSoundFromSceneAssets(soundname) + end +end + +function MenuSystem:setSound(soundasset) + for k,v in pairs(self.menus) do + v:setSound(soundasset) + end +end + -- UPDATE FUNCTIONS -- Update the menus of the menusystem