Ejemplo n.º 1
0
        /// <summary>
        ///     Creates the display for KPS
        /// </summary>
        private void CreateKeysPerSecondDisplay()
        {
            var skin = SkinManager.Skin.Keys[Screen.Map.Mode];

            // Create KPS display
            KpsDisplay = new KeysPerSecond(NumberDisplayType.Score, "0", new Vector2(skin.KpsDisplayScale / 100f, skin.KpsDisplayScale / 100f))
            {
                Parent    = Container,
                Alignment = Alignment.TopRight,
                X         = SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosX,
                Y         = 40 + SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosY
            };
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Creates the display for KPS
        /// </summary>
        private void CreateKeysPerSecondDisplay()
        {
            // Create KPS display
            KpsDisplay = new KeysPerSecond(NumberDisplayType.Score, "0", new Vector2(0.45f, 0.45f))
            {
                Parent    = Container,
                Alignment = Alignment.TopRight
            };

            // Set the position of the KPS display
            KpsDisplay.X = -KpsDisplay.TotalWidth + SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosX;
            KpsDisplay.Y = AccuracyDisplay.Y + AccuracyDisplay.Digits[0].Height + SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosY;
        }
Ejemplo n.º 3
0
        /// <summary>
        ///     Creates the display for KPS
        /// </summary>
        private void CreateKeysPerSecondDisplay()
        {
            var skin = SkinManager.Skin.Keys[Screen.Map.Mode];

            // Create KPS display
            KpsDisplay = new KeysPerSecond(NumberDisplayType.Score, "0", new Vector2(skin.KpsDisplayScale / 100f, skin.KpsDisplayScale / 100f),
                                           SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosX)
            {
                Parent    = Container,
                Alignment = Alignment.TopRight
            };

            KpsDisplay.Y = AccuracyDisplay.Y + AccuracyDisplay.Digits[0].Height + SkinManager.Skin.Keys[Screen.Map.Mode].KpsDisplayPosY;
        }