public Leaderboarder(GameInfo gameInfo, HUDAlignment hudAlignment) : base(gameInfo, hudAlignment, i => String.Empty, null) { }
/// <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 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; }
public TextWidget(GameInfo gameInfo, HUDAlignment hudAlignment, GetText func) : base(hudAlignment) { GameInfo = gameInfo; _getTextFunc = func; }
public TimedWidget(GameInfo gameInfo, int timer, GetText func, HUDAlignment hudAlignment = HUDAlignment.Center) : base(gameInfo, hudAlignment, func) { _timer = timer; }
public AvatarWidget(GameInfo gameInfo, HUDAlignment hudAlignment) : base(gameInfo, hudAlignment, info => String.Empty, null) { _textColor = Color.White; //_startingPlayerCash = new List<int>(); }