Example #1
0
 public MenuEntry(string text, Vector2 position, IMenuDelegate menuDelegate)
 {
     this.menuDelegate = menuDelegate;
     this.text = text;
     this.position = position;
     this.textColor = Color.White;
 }
Example #2
0
 public MenuEntry(string text, Vector2 position, IMenuDelegate menuDelegate)
 {
     this.menuDelegate = menuDelegate;
     this.text = text;
     this.position = position;
     this.textColor = Color.White;
     this.textSize = FSGGame.Font.MeasureString(this.text);
     oscScale = new OscillatingFloat(1, (float).15, (float).5);
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GameInfo"/> class.
 /// </summary>
 /// <param name="title">The title.</param>
 /// <param name="boxArt">The box art (name of the Texture2D).</param>
 /// <param name="description">The description.</param>
 /// <param name="authors">The authors.</param>
 /// <param name="instructionsImageName">The name of the 1450 * 800 image constain "how to play".</param>
 /// <param name="scoreboardIndex">Index of the scoreboard.</param>
 /// <param name="creationDelegate">The creation delegate.</param>
 public GameInfo(string title, string boxArt, string description, string authors, string instructionsImageName, int scoreboardIndex, IMenuDelegate creationDelegate)
 {
     this.Title = title;
     this.BoxArt = boxArt;
     this.Description = description;
     this.Authors = authors;
     this.ScoreboardIndex = scoreboardIndex;
     this.GameCreationDelegate = creationDelegate;
     this.InstructionsImageName = instructionsImageName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="GameInfo"/> class.
 /// </summary>
 /// <param name="title">The title.</param>
 /// <param name="boxArt">The box art (name of the Texture2D).</param>
 /// <param name="description">The description.</param>
 /// <param name="authors">The authors.</param>
 /// <param name="instructionsImageName">The name of the 1450 * 800 image constain "how to play".</param>
 /// <param name="scoreboardIndex">Index of the scoreboard.</param>
 /// <param name="creationDelegate">The creation delegate.</param>
 public GameInfo(string title, string boxArt, string description, string authors, string instructionsImageName, int scoreboardIndex, IMenuDelegate creationDelegate)
 {
     this.Title                 = title;
     this.BoxArt                = boxArt;
     this.Description           = description;
     this.Authors               = authors;
     this.ScoreboardIndex       = scoreboardIndex;
     this.GameCreationDelegate  = creationDelegate;
     this.InstructionsImageName = instructionsImageName;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuAction"/> class.
 /// </summary>
 /// <param name="actionType">Type of the action.</param>
 /// <param name="menuDelegate">The menu delegate.</param>
 public MenuAction(ActionType actionType, IMenuDelegate menuDelegate)
 {
     this.actionType = actionType;
     this.menuDelegate = menuDelegate;
 }
Example #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="MenuAction"/> class.
 /// </summary>
 /// <param name="actionType">Type of the action.</param>
 /// <param name="menuDelegate">The menu delegate.</param>
 public MenuAction(ActionType actionType, IMenuDelegate menuDelegate)
 {
     this.actionType   = actionType;
     this.menuDelegate = menuDelegate;
 }
Example #7
0
 /// <summary>
 /// Constructor of derived model vide to handle the menu area of application
 /// </summary>
 /// <param name="mediator">mediator to delegate to</param>
 /// <param name="menuDelegate">application window to delegate to</param>
 public MenuModelView(IModelViewMediator mediator, IMenuDelegate menuDelegate)
     : base(mediator)
 {
     this.MenuDelegate = menuDelegate;
     this.FileHelper   = new FileManager(this);
 }