Add end game dialog

This commit is contained in:
Oliver Brakmann
2014-07-31 21:24:08 +02:00
parent 8cec848a0f
commit 819eb64011
12 changed files with 385 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ namespace OpenRA.Widgets
return window;
}
public static Widget CurrentWindow()
{
return WindowList.Count > 0 ? WindowList.Peek() : null;
}
public static T LoadWidget<T>(string id, Widget parent, WidgetArgs args) where T : Widget
{
var widget = LoadWidget(id, parent, args) as T;