Ejemplo n.º 1
0
        private void onFileCreated(string filename)
        {
            if (UseableThemes.Any(t => t.Name == filename))
            {
                return;
            }

            scheduler.Add(() =>
            {
                using var stream = store.GetStream(filename);
                UseableThemes.Add(new Theme(filename, stream));
            });
        }
Ejemplo n.º 2
0
        private void rotatePlayer()
        {
            if (!registeredActions.Any() || registeredActions.Last() == lastAction)
            {
                return;
            }

            FinishTransforms();
            float FacingAngle = registeredActions.Last().ToAngle();

            this.ScaleTo(new Vector2(1.1f), 50).Then().ScaleTo(1, 50);

            rotateToClosestEquivalent(FacingAngle);
            lastAction = registeredActions.Last();
        }
Ejemplo n.º 3
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            controlPoints = (BindableList <ControlPoint>)Group.ControlPoints.GetBoundCopy();
            controlPoints.BindCollectionChanged((_, __) =>
            {
                if (controlPoints.Count == 0)
                {
                    Colour = Color4.Transparent;
                    return;
                }

                Colour = controlPoints.Any(c => c is TimingControlPoint) ? colours.YellowDark : colours.Green;
            }, true);
        }