untangle default selection in ServerBrowserLogic
This commit is contained in:
@@ -124,7 +124,8 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
|
|
||||||
r.GetWidget("JOINSERVER_PROGRESS_TITLE").Visible = false;
|
r.GetWidget("JOINSERVER_PROGRESS_TITLE").Visible = false;
|
||||||
|
|
||||||
int i = 0;
|
currentServer = gamesWaiting.FirstOrDefault();
|
||||||
|
|
||||||
foreach (var loop in gamesWaiting)
|
foreach (var loop in gamesWaiting)
|
||||||
{
|
{
|
||||||
var game = loop;
|
var game = loop;
|
||||||
@@ -133,8 +134,6 @@ namespace OpenRA.Mods.RA.Widgets.Logic
|
|||||||
() => currentServer = game);
|
() => currentServer = game);
|
||||||
item.GetWidget<LabelWidget>("TITLE").GetText = () => "{0} ({1})".F(game.Name, game.Address);
|
item.GetWidget<LabelWidget>("TITLE").GetText = () => "{0} ({1})".F(game.Name, game.Address);
|
||||||
sl.AddChild(item);
|
sl.AddChild(item);
|
||||||
if (i == 0) currentServer = game;
|
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user