Root the player bin in the lobby ui correctly. Fixes #3505.

This commit is contained in:
Paul Chote
2013-06-30 21:40:37 +12:00
parent 47406d8765
commit c4190167ee
3 changed files with 3 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ namespace OpenRA.Mods.RA.Widgets.Logic
name.GetText = () => orderManager.LobbyInfo.GlobalSettings.ServerName; name.GetText = () => orderManager.LobbyInfo.GlobalSettings.ServerName;
UpdateCurrentMap(); UpdateCurrentMap();
Players = Ui.LoadWidget<ScrollPanelWidget>("LOBBY_PLAYER_BIN", lobby, new WidgetArgs()); Players = Ui.LoadWidget<ScrollPanelWidget>("LOBBY_PLAYER_BIN", lobby.Get("PLAYER_BIN_ROOT"), new WidgetArgs());
Players.IsVisible = () => panel == PanelType.Players; Players.IsVisible = () => panel == PanelType.Players;
EditablePlayerTemplate = Players.Get("TEMPLATE_EDITABLE_PLAYER"); EditablePlayerTemplate = Players.Get("TEMPLATE_EDITABLE_PLAYER");

View File

@@ -89,6 +89,7 @@ Container@SERVER_LOBBY:
Text:Ready Text:Ready
Align:Left Align:Left
Font:Bold Font:Bold
Container@PLAYER_BIN_ROOT:
Button@OPTIONS_BUTTON: Button@OPTIONS_BUTTON:
X:15 X:15
Y:254 Y:254

View File

@@ -86,6 +86,7 @@ Background@SERVER_LOBBY:
Text:Ready Text:Ready
Align:Left Align:Left
Font:Bold Font:Bold
Container@PLAYER_BIN_ROOT:
DropDownButton@SLOTS_DROPDOWNBUTTON: DropDownButton@SLOTS_DROPDOWNBUTTON:
X:20 X:20
Y:PARENT_BOTTOM - 291 Y:PARENT_BOTTOM - 291