wire up replay browser to actually start a game. doesnt work.

This commit is contained in:
Chris Forbes
2010-11-10 12:08:47 +13:00
parent 4206cf1b09
commit 734b464de3

View File

@@ -37,6 +37,13 @@ namespace OpenRA.Widgets.Delegates
var offset = template.Bounds.Y;
foreach (var replayFile in Directory.GetFiles(replayDir, "*.rep"))
AddReplay(rl, replayFile, template, ref offset);
widget.GetWidget("WATCH_BUTTON").OnMouseUp = mi =>
{
Widget.CloseWindow();
Game.JoinReplay(currentReplay);
return true;
};
}
string currentReplay = null;