Ejemplo n.º 1
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            PopOutSpriteText.Anchor = Anchor.BottomCentre;
            PopOutSpriteText.Origin = Anchor.Centre;
            PopOutSpriteText.FadeColour(PopOutColor, 0);
            OriginalColour = DisplayedCountSpriteText.Colour;
        }
Ejemplo n.º 2
0
        public override void Load(BaseGame game)
        {
            base.Load(game);

            PopOutSpriteText.Anchor = Anchor.BottomCentre;
            PopOutSpriteText.Origin = Anchor.Centre;
            PopOutSpriteText.FadeColour(PopOutColor, 0);
            OriginalColour = DisplayedCountSpriteText.Colour;
        }
Ejemplo n.º 3
0
        protected virtual void TransformPopOut(ulong newValue)
        {
            PopOutSpriteText.Text = FormatCount(newValue);

            PopOutSpriteText.ScaleTo(PopOutScale);
            PopOutSpriteText.FadeTo(PopOutInitialAlpha);
            PopOutSpriteText.MoveTo(Vector2.Zero);

            PopOutSpriteText.ScaleTo(1, PopOutDuration, PopOutEasing);
            PopOutSpriteText.FadeOut(PopOutDuration, PopOutEasing);
            PopOutSpriteText.MoveTo(DisplayedCountSpriteText.Position, PopOutDuration, PopOutEasing);
        }
Ejemplo n.º 4
0
        protected override void OnCountRolling(ulong currentValue, ulong newValue)
        {
            if (!IsRolling && newValue < currentValue)
            {
                PopOutSpriteText.Text = FormatCount(currentValue);

                PopOutSpriteText.FadeTo(PopOutInitialAlpha);
                PopOutSpriteText.ScaleTo(1.0f);

                PopOutSpriteText.FadeOut(PopOutDuration, PopOutEasing);
                PopOutSpriteText.ScaleTo(PopOutScale, PopOutDuration, PopOutEasing);
            }

            base.OnCountRolling(currentValue, newValue);
        }