示例#1
0
 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"
         }
     };
 }
示例#2
0
 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
         }
     };
 }
示例#3
0
 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"
         }
     };
 }
示例#4
0
 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 = "谱面击打音效"
         }
     };
 }
示例#5
0
        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"
         }
     };
 }
示例#7
0
 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,
             },
         }
     };
 }
示例#8
0
 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 = "使用圖譜的打擊音"
         }
     };
 }
示例#9
0
 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
         },
     };
 }