Esempio n. 1
0
        private void load(TextureStore textures)
        {
            InternalChildren = new Drawable[]
            {
                new Sprite
                {
                    Anchor  = Anchor.Centre,
                    Origin  = Anchor.Centre,
                    Texture = textures.Get(@"Gameplay/osu/disc"),
                },
                new KiaiFlash
                {
                    RelativeSizeAxes = Axes.Both,
                },
                triangles = new TrianglesPiece
                {
                    RelativeSizeAxes = Axes.Both,
                    Blending         = BlendingParameters.Additive,
                    Alpha            = 0.5f,
                }
            };

            drawableObject.HitObjectApplied += onHitObjectApplied;
            onHitObjectApplied(drawableObject);
        }
Esempio n. 2
0
        private void load()
        {
            Child = triangles = new TrianglesPiece
            {
                Blending         = BlendingParameters.Additive,
                RelativeSizeAxes = Axes.Both,
                Alpha            = 0.2f,
            };

            drawableObject.HitObjectApplied += onHitObjectApplied;
            onHitObjectApplied(drawableObject);
        }