Root the player bin in the lobby ui correctly. Fixes #3505.
This commit is contained in:
@@ -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");
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user