Пример #1
0
        protected override void LoadComplete()
        {
            base.LoadComplete();

            IndexInBeatmap.BindValueChanged(index =>
            {
                setTexture(Fruit.GetVisualRepresentation(index.NewValue));
            }, true);
        }
Пример #2
0
        private void load()
        {
            IndexInBeatmap.BindValueChanged(change =>
            {
                VisualRepresentation.Value = GetVisualRepresentation(change.NewValue);
            }, true);

            VisualRepresentation.BindValueChanged(_ => updatePiece());
            HyperDash.BindValueChanged(_ => updatePiece(), true);
        }
Пример #3
0
        private void load()
        {
            IndexInBeatmap.BindValueChanged(change =>
            {
                VisualRepresentation.Value = (FruitVisualRepresentation)(change.NewValue % 4);
            }, true);

            ScaleContainer.Child = new SkinnableDrawable(
                new CatchSkinComponent(CatchSkinComponents.Fruit),
                _ => new FruitPiece());
        }
Пример #4
0
        private void load()
        {
            ScaleContainer.Rotation = (float)(RNG.NextDouble() - 0.5f) * 40;

            IndexInBeatmap.BindValueChanged(change =>
            {
                VisualRepresentation.Value = GetVisualRepresentation(change.NewValue);
            }, true);

            VisualRepresentation.BindValueChanged(_ => updatePiece());
            HyperDash.BindValueChanged(_ => updatePiece(), true);
        }