Exemplo n.º 1
0
 private void SetupViews(int screenWidth, int screenHeight, CellSurface title)
 {
     mapgenButton             = UIFactory.CreateButton(15, "New World", 27, 13);
     chargenButton            = UIFactory.CreateButton(15, "New Character", 35, 15);
     startGameButton          = UIFactory.CreateButton(15, "Start game", 43, 17);
     licenseButton            = UIFactory.CreateButton(15, "License", 45, 13);
     quitGameButton           = UIFactory.CreateButton(15, "Quit", 27, 17);
     closeCGWindowButton      = UIFactory.CreateButton(1, "x", 0, 0);
     closeMGWindowButton      = UIFactory.CreateButton(1, "x", 0, 0);
     closeLicenseWindowButton = UIFactory.CreateButton(1, "x", 0, 0);
     MenuView = new ControlsConsole(screenWidth, screenHeight);
     MenuView.Add(chargenButton);
     MenuView.Add(mapgenButton);
     MenuView.Add(startGameButton);
     MenuView.Add(licenseButton);
     MenuView.Add(quitGameButton);
     MenuView.UseMouse = true;
     Children.Add(MenuView);
     MenuView.SetSurface(title);
 }