fix noob mistake, still goes boom
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,4 +50,7 @@ Voices:
|
||||
Terrain:
|
||||
mods/ra/terrain.yaml
|
||||
|
||||
Music:
|
||||
mods/ra/music.yaml
|
||||
|
||||
ShellmapUid:b22b0197b126d6236a7c1e18c3001c83af10156c
|
||||
|
||||
Reference in New Issue
Block a user