Add explicit placeholders to the lobby.

This commit is contained in:
Pieter-Jan Briers
2019-05-14 08:38:49 +02:00
parent 96fbde3413
commit ad3b3c9f4f
2 changed files with 16 additions and 6 deletions

View File

@@ -9,6 +9,7 @@ using Robust.Client;
using Robust.Client.Console;
using Robust.Client.Interfaces;
using Robust.Client.Interfaces.Input;
using Robust.Client.Interfaces.ResourceManagement;
using Robust.Client.Interfaces.UserInterface;
using Robust.Client.UserInterface;
using Robust.Shared.Input;
@@ -30,6 +31,7 @@ namespace Content.Client.GameTicking
[Dependency] private IChatManager _chatManager;
[Dependency] private IClientConsole _console;
[Dependency] private ILocalizationManager _localization;
[Dependency] private IResourceCache _resourceCache;
#pragma warning restore 649
[ViewVariables] private bool _areWeReady;
@@ -147,7 +149,7 @@ namespace Content.Client.GameTicking
_tickerState = TickerState.InLobby;
_lobby = new LobbyGui(_localization);
_lobby = new LobbyGui(_localization, _resourceCache);
_userInterfaceManager.StateRoot.AddChild(_lobby);
_lobby.SetAnchorAndMarginPreset(Control.LayoutPreset.Wide, margin: 20);