We have more music

This commit is contained in:
alzeih
2010-05-06 20:17:50 +12:00
parent 930ad6e9a1
commit 3c539daf20
4 changed files with 15 additions and 26 deletions

View File

@@ -50,7 +50,7 @@ namespace OpenRA.Widgets.Delegates
return true;
};
bg.GetWidget("BUTTON_PREV").OnMouseUp = mi => {
Sound.PlayMusic(GetNextSong());
Sound.PlayMusic(GetPrevSong());
Sound.MusicPaused = false;
bg.GetWidget("BUTTON_PLAY").Visible = false;
bg.GetWidget("BUTTON_PAUSE").Visible = true;
@@ -58,10 +58,7 @@ namespace OpenRA.Widgets.Delegates
};
}
string GetNextSong()
{
//goes boom here
return Rules.Music["AllMusic"].Pools.Value["Music"].GetNext();
}
string GetNextSong() { return Rules.Music["allmusic"].Pool.GetNext(); }
string GetPrevSong() { return Rules.Music["allmusic"].Pool.GetPrev(); }
}
}