remove dead things

This commit is contained in:
Chris Forbes
2010-04-16 18:56:42 +12:00
parent 5254137973
commit 32a704a251

View File

@@ -157,18 +157,12 @@ namespace OpenRA.Widgets
}
return null;
}
public T GetWidget<T>(string id) where T : Widget
{
return (T)GetWidget(id);
}
public Widget GetWindow()
{
return Chrome.rootWidget.GetWidget(WindowList.Peek());
// 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 void CloseWindow()
{
Chrome.rootWidget.GetWidget(WindowList.Pop()).Visible = false;