Revert replacing generic Ui.OpenWindow with static method in MusicPlayerLogic

This commit is contained in:
Pavlos Touboulidis
2014-05-10 18:27:30 +03:00
parent 10b8093d5a
commit d9db1c1854
5 changed files with 10 additions and 15 deletions

View File

@@ -63,7 +63,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
widget.Get<ButtonWidget>("MUSIC").OnClick = () =>
{
widget.Visible = false;
MusicPlayerLogic.OpenWindow(world, () => { widget.Visible = true; });
Ui.OpenWindow("MUSIC_PANEL", new WidgetArgs { { "onExit", () => { widget.Visible = true; } } });
};
widget.Get<ButtonWidget>("RESUME").OnClick = () => onExit();