auto-restart the game after getting the game-files

This commit is contained in:
Matthias Mailänder
2012-06-25 14:47:08 +02:00
committed by Chris Forbes
parent a64629f1c5
commit 5318380bfa
6 changed files with 19 additions and 10 deletions

View File

@@ -25,13 +25,13 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
Dictionary<string,string> installData;
ProgressBarWidget progressBar;
LabelWidget statusLabel;
//Action afterInstall;
Action afterInstall;
[ObjectCreator.UseCtor]
public D2kDownloadPackagesLogic(Widget widget, Dictionary<string,string> installData, Action afterInstall)
{
this.installData = installData;
//this.afterInstall = afterInstall;
this.afterInstall = afterInstall;
panel = widget.Get("INSTALL_DOWNLOAD_PANEL");
progressBar = panel.Get<ProgressBarWidget>("PROGRESS_BAR");
@@ -97,7 +97,7 @@ namespace OpenRA.Mods.D2k.Widgets.Logic
Game.RunAfterTick(() =>
{
Ui.CloseWindow();
//afterInstall();
afterInstall();
});
}
};