protected override void LoadComplete() { base.LoadComplete(); IndexInBeatmap.BindValueChanged(index => { setTexture(Fruit.GetVisualRepresentation(index.NewValue)); }, true); }
private void load() { IndexInBeatmap.BindValueChanged(change => { VisualRepresentation.Value = GetVisualRepresentation(change.NewValue); }, true); VisualRepresentation.BindValueChanged(_ => updatePiece()); HyperDash.BindValueChanged(_ => updatePiece(), true); }
private void load() { IndexInBeatmap.BindValueChanged(change => { VisualRepresentation.Value = (FruitVisualRepresentation)(change.NewValue % 4); }, true); ScaleContainer.Child = new SkinnableDrawable( new CatchSkinComponent(CatchSkinComponents.Fruit), _ => new FruitPiece()); }
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); }