private void load(RulesetStore rulesets) { Lyric = DemoKaraokeObject.GenerateDemo001(); DrawableKaraokeObject = new DrawableLyric(Lyric) { Position = new Vector2(), ProgressUpdateByTime = false, }; var slider = new SettingsSlider <double>() { LabelText = "Background dim ", Bindable = new BindableDouble { MinValue = 0, MaxValue = 500, Default = 300, Value = DrawableKaraokeObject.Progress, }, Width = 0.5f }; slider.Bindable.ValueChanged += (v) => { DrawableKaraokeObject.Progress = v; }; Children = new Drawable[] { slider, }; Add(DrawableKaraokeObject); }
private void load(RulesetStore rulesets) { var rateAdjustClock = new StopwatchClock(true); framedClock = new FramedClock(rateAdjustClock); AddStep(@"KaraokeObject_Demo001", () => loadHitobjects(DemoKaraokeObject.GenerateDemo001())); AddStep(@"ResetPosition", () => { appearPosition = new Vector2(0, -200); }); framedClock.ProcessFrame(); var clockAdjustContainer = new Container { RelativeSizeAxes = Axes.Both, Clock = framedClock, Children = new[] { playfieldContainer = new KaraokeInputManager(rulesets.GetRuleset(0)) { RelativeSizeAxes = Axes.Both }, } }; Add(clockAdjustContainer); }
public DevelopLyricPlayField() { var field = new LyricLagacyLayoutContainer() { RelativeSizeAxes = Axes.Both, Padding = new MarginPadding { Left = 100, Right = 100, Top = 100, Bottom = 100 } }; for (int i = 0; i < 4; i++) { var lyric = DemoKaraokeObject.GenerateDemo001(); field.Add(new DrawableLyric(lyric) { ProgressUpdateByTime = false }); } Add(field); }