auto-restart the game after getting the game-files
This commit is contained in:
committed by
Chris Forbes
parent
a64629f1c5
commit
5318380bfa
@@ -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();
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user