public UI_PlayerSelectCharacters(A3RData a3RData, endSelectStage endSelectStage) : base(a3RData, endSelectStage) { _background = new UI_StaticImage(Camera, 0, 0, SwinGame.BitmapNamed("shopBg")); AddElement(_background); _playerText = new UI_Text(Camera, Width(0.5f), Height(0.38f), Color.Black, "Player X:", true); AddElement(_playerText); AddElement(new UI_Text(A3RData.Camera, Width(0.5f), Height(0.35f), Color.Black, "Select a Character", true)); UI_Button _uiButton; _uiButton = new UI_Button(A3RData.Camera, "G.W. Tiger", Width(0.25f), Height(0.5f), new UIEventArgs("gwt")); _uiButton.OnUIEvent += CharacterButtonPressed; _uiButton.MouseOverSoundEffect = SwinGame.SoundEffectNamed("menuSound"); _uiButton.MiddleAligned = true; AddElement(_uiButton); _uiButton = new UI_Button(A3RData.Camera, "Object 15X", Width(0.5f), Height(0.5f), new UIEventArgs("obj")); _uiButton.OnUIEvent += CharacterButtonPressed; _uiButton.MouseOverSoundEffect = SwinGame.SoundEffectNamed("menuSound"); _uiButton.MiddleAligned = true; AddElement(_uiButton); _uiButton = new UI_Button(A3RData.Camera, "Innocentia", Width(0.75f), Height(0.5f), new UIEventArgs("int")); _uiButton.OnUIEvent += CharacterButtonPressed; _uiButton.MouseOverSoundEffect = SwinGame.SoundEffectNamed("menuSound"); _uiButton.MiddleAligned = true; AddElement(_uiButton); }
public UI_PlayerSelectTemplate(A3RData a3RData, endSelectStage endSelectStage) : base(a3RData) { _endSelectStage = endSelectStage; _menuLogo = new UI_StaticImage(Camera, Width(0.45f), Height(0.14f), SwinGame.BitmapNamed("menuLogo")); AddElement(_menuLogo); }
public UI_PlayerSelectNumberPlayers(A3RData a3RData, endSelectStage endSelectStage) : base(a3RData, endSelectStage) { _background = new UI_StaticImage(Camera, 0, 0, SwinGame.BitmapNamed("shopBg")); AddElement(_background); AddElement(new UI_Text(Camera, Width(0.5f), Height(0.35f), Color.Black, "Number of players:", true)); A3RData.NumberOfPlayers = 0; }
public UI_PlayerSelectNames(A3RData a3RData, endSelectStage endSelectStage) : base(a3RData, endSelectStage) { _background = new UI_StaticImage(Camera, 0, 0, SwinGame.BitmapNamed("shopBg")); AddElement(_background); _playerText = new UI_Text(Camera, Width(0.5f), Height(0.35f), Color.Black, "Player X:", true); AddElement(_playerText); _isComputerPlayer = new UI_CheckBox(Camera, new Vector(Width(0.59f), Height(0.397f)), "Computer Player?"); AddElement(_isComputerPlayer); _inputMethodKey = new Dictionary <bool, IInputMethod>(); _inputMethodKey.Add(true, new AIInputMethod()); _inputMethodKey.Add(false, new PlayerInputMethod()); }