public VisualSettings() { Children = new Drawable[] { new OsuSpriteText { Text = "Background dim:" }, dimSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "Background blur:" }, blurSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "Toggles:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = "Storyboards" }, beatmapSkinsToggle = new PlayerCheckbox { LabelText = "Beatmap skins" }, beatmapHitsoundsToggle = new PlayerCheckbox { LabelText = "Beatmap hit sounds" } }; }
public PlaybackSettings() : base("playback") { Children = new Drawable[] { new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Padding = new MarginPadding { Horizontal = padding }, Children = new Drawable[] { new OsuSpriteText { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft, Text = "Playback speed", }, multiplierText = new OsuSpriteText { Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, Font = OsuFont.GetFont(weight: FontWeight.Bold), } }, }, rateSlider = new PlayerSliderBar <double> { Current = UserPlaybackRate } }; }
public VisualSettings() { Children = new Drawable[] { new OsuSpriteText { Text = "Background dim:" }, dimSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "Background blur:" }, blurSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "Toggles:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = "Storyboards" }, mouseWheelDisabledToggle = new PlayerCheckbox { LabelText = "Disable mouse wheel" } }; }
public VisualSettings() { Children = new Drawable[] { new OsuSpriteText { Text = "背景暗化:" }, dimSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "背景模糊:" }, blurSliderBar = new PlayerSliderBar <double>(), new OsuSpriteText { Text = "切换:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = "故事版" }, showVideoToggle = new PlayerCheckbox { LabelText = "视频" }, beatmapSkinsToggle = new PlayerCheckbox { LabelText = "谱面皮肤" }, beatmapHitsoundsToggle = new PlayerCheckbox { LabelText = "谱面击打音效" } }; }
public PlaybackSettings() { OsuSpriteText multiplierText; Children = new Drawable[] { new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Padding = new MarginPadding { Horizontal = padding }, Children = new Drawable[] { new OsuSpriteText { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft, Text = "Playback speed", }, multiplierText = new OsuSpriteText { Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, Font = @"Exo2.0-Bold", } }, }, sliderbar = new PlayerSliderBar <double> { Bindable = new BindableDouble(1) { Default = 1, MinValue = 0.5, MaxValue = 2, Precision = 0.1, }, } }; sliderbar.Bindable.ValueChanged += rateMultiplier => multiplierText.Text = $"{sliderbar.Bar.TooltipText}x"; sliderbar.Bindable.TriggerChange(); }
public VisualSettings() : base("Visual Settings") { Children = new Drawable[] { new OsuSpriteText { Text = "Background dim:" }, dimSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = "Background blur:" }, blurSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = "Toggles:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = "Storyboard / Video" }, beatmapSkinsToggle = new PlayerCheckbox { LabelText = "Beatmap skins" }, beatmapColorsToggle = new PlayerCheckbox { LabelText = "Beatmap colours" }, beatmapHitsoundsToggle = new PlayerCheckbox { LabelText = "Beatmap hitsounds" } }; }
public PlaybackSettings() { Children = new Drawable[] { new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Padding = new MarginPadding { Horizontal = padding }, Children = new Drawable[] { new OsuSpriteText { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft, Text = "Playback speed", }, multiplierText = new OsuSpriteText { Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, Font = OsuFont.GetFont(weight: FontWeight.Bold), } }, }, rateSlider = new PlayerSliderBar <double> { Bindable = new BindableDouble(1) { Default = 1, MinValue = 0.5, MaxValue = 2, Precision = 0.1, }, } }; }
public VisualSettings() : base("Visual Settings") { Children = new Drawable[] { new OsuSpriteText { Text = "背景暗度:" }, dimSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = "背景模糊:" }, blurSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = "切換:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = "故事板 / 影片" }, beatmapSkinsToggle = new PlayerCheckbox { LabelText = "使用圖譜的皮膚" }, beatmapHitsoundsToggle = new PlayerCheckbox { LabelText = "使用圖譜的打擊音" } }; }
public VisualSettings() : base("Visual Settings") { Children = new Drawable[] { new OsuSpriteText { Text = GameplaySettingsStrings.BackgroundDim }, dimSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = GameplaySettingsStrings.BackgroundBlur }, blurSliderBar = new PlayerSliderBar <double> { DisplayAsPercentage = true }, new OsuSpriteText { Text = "Toggles:" }, showStoryboardToggle = new PlayerCheckbox { LabelText = GraphicsSettingsStrings.StoryboardVideo }, beatmapSkinsToggle = new PlayerCheckbox { LabelText = SkinSettingsStrings.BeatmapSkins }, beatmapColorsToggle = new PlayerCheckbox { LabelText = SkinSettingsStrings.BeatmapColours }, }; }