Perf info in main menu

This commit is contained in:
Paul Chote
2010-04-11 15:41:43 +12:00
parent 1441d9b2f1
commit 1646f202d5
5 changed files with 30 additions and 31 deletions

View File

@@ -151,7 +151,11 @@ namespace OpenRA.Widgets
return (T)GetWidget(id);
}
public Widget GetCurrentMenu() { return Children.FirstOrDefault(c => c.Visible); }
public Widget GetCurrentMenu()
{
// HACK HACK HACK (this method will vanish soon, so not going to hack the widget yaml itself)
return Children.FirstOrDefault(c => c.Visible && c.Id != "MUSIC_BG" && c.Id != "PERF_BG");
}
public Widget ShowMenu(string menu)
{