Skip to content

Commit

Permalink
fix noob mistake, still goes boom
Browse files Browse the repository at this point in the history
  • Loading branch information
alzeih committed May 6, 2010
1 parent 30ee0af commit 930ad6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OpenRA.Game/Widgets/Delegates/MusicPlayerDelegate.cs
Expand Up @@ -43,17 +43,25 @@ public MusicPlayerDelegate()
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();
}
}
}
3 changes: 3 additions & 0 deletions mods/ra/mod.yaml
Expand Up @@ -49,5 +49,8 @@ Voices:

Terrain:
mods/ra/terrain.yaml

Music:
mods/ra/music.yaml

ShellmapUid:b22b0197b126d6236a7c1e18c3001c83af10156c

0 comments on commit 930ad6e

Please sign in to comment.