public StarsScoreDisplay(bool count) { _value.Set(MainGame.Inst.Profile.ScoreStars); _value.SetDelta(FloatMath.Max(37, MainGame.Inst.Profile.ScoreStars / 2f)); if (!count) { _value.Finish(); } _text = new HUDRawText { Alignment = HUDAlignment.CENTERLEFT, Text = ((int)_value.ActualValue).ToString(), TextColor = FlatColors.TextHUD, FontSize = 60f, RelativePosition = new FPoint(10 + 40 + 30, 0), }; _icon = new HUDImage { Image = Textures.TexIconStar, Color = FlatColors.SunFlower, Alignment = HUDAlignment.CENTERLEFT, RelativePosition = new FPoint(10, 0), Size = new FSize(40, 40), }; Alignment = HUDAlignment.TOPRIGHT; RelativePosition = new FPoint(10, 10); Size = new FSize(250, 60); IsVisible = (MainGame.Inst.Profile.ScoreStars > 0 || MainGame.Inst.Profile.HasCreatedLevels); UpdateRelativePosition(); }
public ScoreDisplay(bool count) { _value.Set(MainGame.Inst.Profile.TotalPoints); _value.SetDelta(FloatMath.Max(537, MainGame.Inst.Profile.TotalPoints / 4f)); if (!count) { _value.Finish(); } _text = new HUDRawText { Alignment = HUDAlignment.CENTERLEFT, Text = ((int)_value.ActualValue).ToString(), TextColor = FlatColors.TextHUD, FontSize = 60f, RelativePosition = new FPoint(10 + 40 + 30, 0), }; _icon = new HUDImage { Image = Textures.TexIconScore, Alignment = HUDAlignment.CENTERLEFT, RelativePosition = new FPoint(10, 0), Size = new FSize(40, 40) }; Alignment = HUDAlignment.TOPRIGHT; RelativePosition = new FPoint(10, 10); Size = new FSize(250, 60); }
public HUDIncrementIndicatorLabel(string value, string increment, int depth = 0) : base(depth) { Text = value; incrementLabel = new HUDRawText { Text = increment, }; AddOperation(new HUDIncrementIndicatorLabelWiggleOperation()); }
public TopLevelDisplay() { text = new HUDRawText { Alignment = HUDAlignment.CENTER, Text = string.Empty, TextColor = FlatColors.TextHUD, FontSize = 30f, }; Alignment = HUDAlignment.TOPCENTER; RelativePosition = new FPoint(0, -35); Size = new FSize(300, 35); }
public TopLevelDisplay() { text = new HUDRawText { Alignment = HUDAlignment.CENTER, Text = string.Empty, TextColor = FlatColors.TextHUD, FontSize = 30f, }; Alignment = HUDAlignment.TOPLEFT; RelativePosition = new FPoint(0, -MainGame.Inst.Bridge.DeviceSafeAreaInset.MarginTop - 35); Size = new FSize(300, 35); }
public SCCMScoreDisplay(bool count) { _value.Set(MainGame.Inst.Profile.ScoreSCCM); _value.SetDelta(FloatMath.Max(37, MainGame.Inst.Profile.ScoreSCCM / 4f)); if (!count) { _value.Finish(); } _text = new HUDRawText { Alignment = HUDAlignment.CENTERLEFT, Text = ((int)_value.ActualValue).ToString(), TextColor = FlatColors.TextHUD, FontSize = 60f, RelativePosition = new FPoint(10 + 40 + 30, 0), }; _img = new HUDImage { Alignment = HUDAlignment.CENTERLEFT, RelativePosition = new FPoint(10, 0), Size = new FSize(40, 40), Image = Textures.TexCircle, Color = FlatColors.WetAsphalt * 0.4f, }; _ani = new HUDTetroAnimation { Alignment = HUDAlignment.CENTERLEFT, RelativePosition = new FPoint(10 + 1, 0), Size = new FSize(38, 38), Foreground = FlatColors.Alizarin, }; Alignment = HUDAlignment.TOPRIGHT; RelativePosition = new FPoint(10, 10); Size = new FSize(250, 60); IsVisible = (MainGame.Inst.Profile.ScoreSCCM > 0); UpdateRelativePosition(); }
public MultiplayerScoreDisplay(ScoreDisplay reference, bool count) { _ref = reference; _value.Set(MainGame.Inst.Profile.MultiplayerPoints); _value.SetDelta(FloatMath.Max(37, MainGame.Inst.Profile.MultiplayerPoints / 4f)); if (!count) { _value.Finish(); } _text = new HUDRawText { Alignment = HUDAlignment.CENTERLEFT, Text = ((int)_value.ActualValue).ToString(), TextColor = FlatColors.TextHUD, FontSize = 60f, RelativePosition = new FPoint(10 + 40 + 30, 0), }; _icon = new HUDImage { Image = Textures.TexIconMPScore, Color = FlatColors.Amethyst, Alignment = HUDAlignment.CENTERLEFT, RelativePosition = new FPoint(10, 0), Size = new FSize(40, 40), }; Alignment = HUDAlignment.TOPRIGHT; RelativePosition = new FPoint(10, 10); Size = new FSize(250, 60); IsVisible = MainGame.Inst.Profile.HasMultiplayerGames; UpdateRelativePosition(); }