Advertisement
Guest User

Example

a guest
Mar 29th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.52 KB | None | 0 0
  1. local ThemeSlot3Lobby = BaseTheme:inheritclass("ThemeSlot3Lobby")
  2.  
  3. local bg_sound_name = "slot1_LobbyMusic"
  4.  
  5. local function _load_bg_sound_done()
  6.     ThemeSlot3Lobby.SoundPart.Alive._audioBgmController:Play(bg_sound_name);
  7.     ThemeSlot3Lobby.SoundPart.Alive._audioBgmController.Loop = true;
  8. end
  9.  
  10. -- #######################
  11. -- ## hook functions    ##
  12. -- #######################
  13.  
  14. function ThemeSlot3Lobby:InitSound()
  15.     self:LoadAudioTab(MjmDefine.CsAudioType.Bgm, bg_sound_name, "_audioBgmController", _load_bg_sound_done)
  16. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement