public void InitScreens(IRenderer renderer, IScreenManager screenManager) { ScreenManager = screenManager; var gameScreen = screenManager.CreateScreen(); GameBoardLayout = gameScreen.CreateLayout(430, 557).MakeActive().ForceTick(); BingoBoardLayout = gameScreen.CreateLayout(332, 557); InfoAreaLayout = gameScreen.CreateLayout(259, 698); PeopleAreaLayout = gameScreen.CreateLayout(762, 202).SetScreenOrientation(ScreenOrientation.Horizontal).Offset(0, -61); GameBoardLayout.LeftOf(InfoAreaLayout).RightOf(BingoBoardLayout); PeopleAreaLayout.Below(BingoBoardLayout).Below(GameBoardLayout); GameBoardLayout.LayoutView = new ClientGameBoard(this, GameBoardLayout.Width, 1280, renderer, GameBoardLayout); BingoBoardLayout.LayoutView = new BingoLayout(this, 332, 557, renderer, BingoBoardLayout); InfoAreaLayout.LayoutView = new InfoAreaLayout(this, 259, 698, renderer, InfoAreaLayout); PeopleAreaLayout.LayoutView = new PeopleAreaLayout(this, 762, 202, renderer, PeopleAreaLayout); var lobbyScreen = screenManager.CreateScreen(); LobbyListLayout = lobbyScreen.CreateLayout(766, 584).MakeActive(); LobbyListLayout.LayoutView = new LobbyLayout(this, 766, 584, renderer, LobbyListLayout); screenManager.ChangeScreen(gameScreen); }
public void InitScreens(IRenderer renderer, IScreenManager screenManager) { ScreenManager = screenManager; int width = 1536; int height = 2048; landingScreen = screenManager.CreateScreen(); LandingAreaLayout = landingScreen.CreateLayout(width, height).MakeActive().SetScreenOrientation(ScreenOrientation.Vertical); LandingAreaLayout.LayoutView = new LandingAreaLayout(this, renderer, LandingAreaLayout); ScreenManager.ChangeScreen(landingScreen); }