examples/options: add music

This commit is contained in:
Kazhnuz 2019-04-17 19:05:53 +02:00
parent 62358ded31
commit dd0234a624
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View file

@ -30,6 +30,8 @@ local Widgets = require "examples.menus.options.widgets"
function OptionsMenu:new() function OptionsMenu:new()
OptionsMenu.super.new(self) OptionsMenu.super.new(self)
self.assets:addImageFont("medium", "examples/mainmenu/assets/medium") self.assets:addImageFont("medium", "examples/mainmenu/assets/medium")
self.assets:setMusic("examples/menus/options/assets/music.ogg")
self.assets:playMusic()
self:addMenu("main", true) self:addMenu("main", true)
self:addSubMenu("video", "video") self:addSubMenu("video", "video")