fix noob mistake, still goes boom

This commit is contained in:
alzeih
2010-05-05 23:40:33 +12:00
parent 30ee0afdc0
commit 930ad6e9a1
2 changed files with 11 additions and 0 deletions

View File

@@ -43,17 +43,25 @@ namespace OpenRA.Widgets.Delegates
return true;
};
bg.GetWidget("BUTTON_NEXT").OnMouseUp = mi => {
Sound.PlayMusic(GetNextSong());
Sound.MusicPaused = false;
bg.GetWidget("BUTTON_PLAY").Visible = false;
bg.GetWidget("BUTTON_PAUSE").Visible = true;
return true;
};
bg.GetWidget("BUTTON_PREV").OnMouseUp = mi => {
Sound.PlayMusic(GetNextSong());
Sound.MusicPaused = false;
bg.GetWidget("BUTTON_PLAY").Visible = false;
bg.GetWidget("BUTTON_PAUSE").Visible = true;
return true;
};
}
string GetNextSong()
{
//goes boom here
return Rules.Music["AllMusic"].Pools.Value["Music"].GetNext();
}
}
}