コード例 #1
0
 public CharacterSelectView(MainController mainController, Image image, AssetManager assetManager, MainMenuView mainMenu, ICharacterSelectMenu selectMenuPlayer1, ICharacterSelectMenu selectMenuPlayer2, SoundManager soundManager) : base(mainController, image, assetManager, soundManager)
 {
     this.mainMenu          = mainMenu;
     this.selectMenuPlayer1 = selectMenuPlayer1;
     this.selectMenuPlayer2 = selectMenuPlayer2;
     cellX    = Width / 20;
     cellY    = Height / 20;
     mainFont = new Font("Arial", (int)(cellY));
 }
コード例 #2
0
 public CharacterView(MainController controller, ImageControl image, AssetManager assetManager, MainMenuView mainMenu,
                      ICharacterDescriptionMenu descriptionMenu, SoundManager soundManager)
     : base(controller, image, assetManager, soundManager)
 {
     this.descriptionMenu = descriptionMenu;
     this.mainMenu        = mainMenu;
     cellX              = Width / 50;
     cellY              = Height / 50;
     regularFont        = new Font("Arial", (int)(cellY * 1.4));
     descriptionFont    = new Font("Arial", (int)(cellY * 1.2));
     titleFont          = new Font("Arial", cellY * 4, FontStyle.Bold);
     stringFormatCenter = new StringFormat
     {
         Alignment = StringAlignment.Center
     };
     stringFormatNormal = new StringFormat
     {
         Alignment = StringAlignment.Near
     };
 }
コード例 #3
0
 public AboutView(MainController controller, ImageControl image, AssetManager assetManager, SoundManager soundManager, MainMenuView mainMenu)
     : base(controller, image, assetManager, soundManager)
 {
     this.mainMenu = mainMenu;
     font          = new Font("Arial", Height / 35);
 }