public Leaderboarder(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Empty, null)
 {
 }
Example #2
0
 /// <summary>
 /// Creates a new HUDWidget which will need to be explicitly added to the HUDSystem.
 /// By default HUDWidgets have an active property of true.
 /// </summary>
 /// <param name="hudAlignment">
 ///     The location for this Widget to be rendered at. This location will be calculated
 ///     using the abstract CarSize member. The HUDSystem will pass in where to draw the 
 ///     widget directly as a Vector2.
 ///     <seealso cref="HUDAlignment" />
 /// </param>
 protected HUDWiget(HUDAlignment hudAlignment = HUDAlignment.Center)
 {
     Active = true;
     HUDAlignment = hudAlignment;
 }
Example #3
0
 public AgeCounterWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Format("Current Years {0}/{1} ", i.AgeCounterCurrent, i.AgeCounterTarget), null)
 {
 }
 public PassportWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Empty, null)
 {
 }
 public GraphicalWidget(GameInfo gameInfo, HUDAlignment hudAlignment, GetText func, Texture2D baseTexture)
     : base(gameInfo, hudAlignment, func)
 {
     BaseTexture = baseTexture;
 }
Example #6
0
 public Leaderboarder(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Empty, null)
 {
 }
Example #7
0
 public TextWidget(GameInfo gameInfo, HUDAlignment hudAlignment, GetText func)
     : base(hudAlignment)
 {
     GameInfo = gameInfo;
     _getTextFunc = func;
 }
Example #8
0
 public TimedWidget(GameInfo gameInfo, int timer, GetText func, HUDAlignment hudAlignment = HUDAlignment.Center)
     : base(gameInfo, hudAlignment, func)
 {
     _timer = timer;
 }
Example #9
0
 /// <summary>
 /// Creates a new HUDWidget which will need to be explicitly added to the HUDSystem.
 /// By default HUDWidgets have an active property of true.
 /// </summary>
 /// <param name="hudAlignment">
 ///     The location for this Widget to be rendered at. This location will be calculated
 ///     using the abstract CarSize member. The HUDSystem will pass in where to draw the
 ///     widget directly as a Vector2.
 ///     <seealso cref="HUDAlignment" />
 /// </param>
 protected HUDWiget(HUDAlignment hudAlignment = HUDAlignment.Center)
 {
     Active       = true;
     HUDAlignment = hudAlignment;
 }
 public PassportWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Empty, null)
 {
 }
Example #11
0
 public GraphicalWidget(GameInfo gameInfo, HUDAlignment hudAlignment, GetText func, Texture2D baseTexture)
     : base(gameInfo, hudAlignment, func)
 {
     BaseTexture = baseTexture;
 }
Example #12
0
 public TimedWidget(GameInfo gameInfo, int timer, GetText func, HUDAlignment hudAlignment = HUDAlignment.Center)
     : base(gameInfo, hudAlignment, func)
 {
     _timer = timer;
 }
Example #13
0
 public TextWidget(GameInfo gameInfo, HUDAlignment hudAlignment, GetText func)
     : base(hudAlignment)
 {
     GameInfo     = gameInfo;
     _getTextFunc = func;
 }
Example #14
0
 public AvatarWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, info => String.Empty, null)
 {
     _textColor = Color.White;
     //_startingPlayerCash = new List<int>();
 }
Example #15
0
 public AvatarWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, info => String.Empty, null)
 {
     _textColor = Color.White;
     //_startingPlayerCash = new List<int>();
 }
 public AgeCounterWidget(GameInfo gameInfo, HUDAlignment hudAlignment)
     : base(gameInfo, hudAlignment, i => String.Format("Current Years {0}/{1} ", i.AgeCounterCurrent, i.AgeCounterTarget), null)
 {
 }