wire up replay browser to actually start a game. doesnt work.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user