Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function PlayGroupSound()
- local fir = SONGMAN:GetSongGroupBannerPath( AllGroups[CurrentGroupNumber] );
- local ogg = string.gsub(fir,'banner.png','info/sound.ogg');
- local mp3 = string.gsub(fir,'banner.png','info/sound.mp3');
- local wav = string.gsub(fir,'banner.png','info/sound.wav');
- local file = "";
- if (FILEMAN:DoesFileExist(ogg)) then file = ogg;
- elseif (FILEMAN:DoesFileExist(mp3)) then file = mp3;
- elseif (FILEMAN:DoesFileExist(wav)) then file = wav;
- else return; end;
- SOUND:PlayOnce(file);
- end;
- t[#t+1] = Def.ActorFrame {
- GoBackSelectingGroupMessageCommand=cmd(stoptweening;sleep,.3;queuecommand,'Play');
- MoveMessageCommand=cmd(stoptweening;sleep,.4;queuecommand,'Play');
- StartSelectingSongMessageCommand=cmd(playcommand,'FadeOut');
- PlayCommand=function(self)
- PlayGroupSound()
- end;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement