made OpenWindow and CloseWindow static

This commit is contained in:
Bob
2010-09-20 22:59:04 +12:00
parent 086bdfb4bd
commit f4699132d6
12 changed files with 33 additions and 33 deletions

View File

@@ -322,14 +322,14 @@ namespace OpenRA.Widgets
return (widget != null)? (T) widget : null;
}
public void CloseWindow()
public static void CloseWindow()
{
RootWidget.GetWidget(WindowList.Pop()).Visible = false;
if (WindowList.Count > 0)
RootWidget.GetWidget(WindowList.Peek()).Visible = true;
}
public Widget OpenWindow(string id)
public static Widget OpenWindow(string id)
{
if (WindowList.Count > 0)
RootWidget.GetWidget(WindowList.Peek()).Visible = false;