Пример #1
0
 public static void LoadContent(ContentManager Content, GraphicsDevice graphicsDevice)
 {
     GameButton.LoadContent(Content);
     GamePanel.LoadContent(Content);
     MessageBox.GraphicsDevice = graphicsDevice;
     HealthBar.LoadContent(Content, graphicsDevice);
     MainMenu.LoadContent(Content);
     InventoryPanel.LoadContent(Content);
 }
Пример #2
0
        private IMenuElementData[] DeployGameButtonData()
        {
            List <IMenuElementData> gameButtonData = new List <IMenuElementData>()
            {
                new GameButtonData("Target Lobby Size: " + gameSession.targetPlayers.ToString(), TargetLobbySize_ClickAction, null),
                new GameButtonData("Server Connection: " + gameSession.NetworkManager.CurrentConnectionType.ToString(), ServerConnection_ClickAction, null),
                new TextBoxData(gameSession.GameInstance.Window, defaultText: "Private Server IP", onTextUpdate: new TextBox.OnTextUpdate((s) => { gameSession.NetworkManager.PrivateServerIP = s; })),
                GameButton.BackButtonData(gameSession)
            };

            return(gameButtonData.ToArray());
        }