diff --git a/osu.Game.Modes.Osu/Objects/Drawables/Pieces/SliderBody.cs b/osu.Game.Modes.Osu/Objects/Drawables/Pieces/SliderBody.cs index e75441c812..7f7d558294 100644 --- a/osu.Game.Modes.Osu/Objects/Drawables/Pieces/SliderBody.cs +++ b/osu.Game.Modes.Osu/Objects/Drawables/Pieces/SliderBody.cs @@ -79,8 +79,8 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Pieces [BackgroundDependencyLoader] private void load(OsuConfigManager config) { - snakingIn = config.GetWeldedBindable(OsuConfig.SnakingInSliders); - snakingOut = config.GetWeldedBindable(OsuConfig.SnakingOutSliders); + snakingIn = config.GetBindable(OsuConfig.SnakingInSliders); + snakingOut = config.GetBindable(OsuConfig.SnakingOutSliders); int textureWidth = (int)PathWidth * 2; diff --git a/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs b/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs index 8c9e135d49..8681259272 100644 --- a/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs +++ b/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs @@ -79,7 +79,7 @@ namespace osu.Game.Beatmaps.Drawables { this.config = config; - preferUnicode = config.GetWeldedBindable(OsuConfig.ShowUnicode); + preferUnicode = config.GetBindable(OsuConfig.ShowUnicode); preferUnicode.ValueChanged += preferUnicode_changed; preferUnicode_changed(preferUnicode, null); } diff --git a/osu.Game/Graphics/Containers/ParallaxContainer.cs b/osu.Game/Graphics/Containers/ParallaxContainer.cs index f180100fb0..1908bd0aa2 100644 --- a/osu.Game/Graphics/Containers/ParallaxContainer.cs +++ b/osu.Game/Graphics/Containers/ParallaxContainer.cs @@ -40,7 +40,7 @@ namespace osu.Game.Graphics.Containers private void load(UserInputManager input, OsuConfigManager config) { this.input = input; - parallaxEnabled = config.GetWeldedBindable(OsuConfig.MenuParallax); + parallaxEnabled = config.GetBindable(OsuConfig.MenuParallax); parallaxEnabled.ValueChanged += delegate { if (!parallaxEnabled) diff --git a/osu.Game/Graphics/Cursor/OsuCursorContainer.cs b/osu.Game/Graphics/Cursor/OsuCursorContainer.cs index 07caa2055e..b8784cef6d 100644 --- a/osu.Game/Graphics/Cursor/OsuCursorContainer.cs +++ b/osu.Game/Graphics/Cursor/OsuCursorContainer.cs @@ -54,7 +54,7 @@ namespace osu.Game.Graphics.Cursor [BackgroundDependencyLoader] private void load(TextureStore textures, OsuConfigManager config) { - cursorScale = config.GetWeldedBindable(OsuConfig.CursorSize); + cursorScale = config.GetBindable(OsuConfig.CursorSize); Children = new Drawable[] { diff --git a/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs b/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs index 4ae3ae6e50..07a8017294 100644 --- a/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs +++ b/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs @@ -82,9 +82,9 @@ namespace osu.Game.Graphics.UserInterface.Volume [BackgroundDependencyLoader] private void load(AudioManager audio) { - volumeMeterMaster.Bindable.Weld(audio.Volume); - volumeMeterEffect.Bindable.Weld(audio.VolumeSample); - volumeMeterMusic.Bindable.Weld(audio.VolumeTrack); + volumeMeterMaster.Bindable.BindTo(audio.Volume); + volumeMeterEffect.Bindable.BindTo(audio.VolumeSample); + volumeMeterMusic.Bindable.BindTo(audio.VolumeTrack); } ScheduledDelegate popOutDelegate; diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs index daa4f38c15..b8a8fe0618 100644 --- a/osu.Game/OsuGame.cs +++ b/osu.Game/OsuGame.cs @@ -87,7 +87,7 @@ namespace osu.Game Dependencies.Cache(this); - PlayMode = LocalConfig.GetWeldedBindable(OsuConfig.PlayMode); + PlayMode = LocalConfig.GetBindable(OsuConfig.PlayMode); } protected async void ImportBeatmapsAsync(IEnumerable paths) diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index c39856f3b6..661cbe06a4 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -211,7 +211,7 @@ namespace osu.Game.Overlays this.beatmaps = beatmaps; trackManager = osuGame.Audio.Track; - preferUnicode = config.GetWeldedBindable(OsuConfig.ShowUnicode); + preferUnicode = config.GetBindable(OsuConfig.ShowUnicode); preferUnicode.ValueChanged += preferUnicode_changed; beatmapSource = osuGame.Beatmap ?? new Bindable(); diff --git a/osu.Game/Overlays/Options/Sections/Audio/OffsetOptions.cs b/osu.Game/Overlays/Options/Sections/Audio/OffsetOptions.cs index 83072d7c97..2602565c29 100644 --- a/osu.Game/Overlays/Options/Sections/Audio/OffsetOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Audio/OffsetOptions.cs @@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options.Sections.Audio new OptionSlider { LabelText = "Universal Offset", - Bindable = (BindableInt)config.GetWeldedBindable(OsuConfig.Offset) + Bindable = (BindableInt)config.GetBindable(OsuConfig.Offset) }, new OsuButton { diff --git a/osu.Game/Overlays/Options/Sections/Audio/VolumeOptions.cs b/osu.Game/Overlays/Options/Sections/Audio/VolumeOptions.cs index 510a02a40d..d8e8964b17 100644 --- a/osu.Game/Overlays/Options/Sections/Audio/VolumeOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Audio/VolumeOptions.cs @@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Options.Sections.Audio new OsuCheckbox { LabelText = "Ignore beatmap hitsounds", - Bindable = config.GetWeldedBindable(OsuConfig.IgnoreBeatmapSamples) + Bindable = config.GetBindable(OsuConfig.IgnoreBeatmapSamples) } }; } diff --git a/osu.Game/Overlays/Options/Sections/Debug/GCOptions.cs b/osu.Game/Overlays/Options/Sections/Debug/GCOptions.cs index 26b3023f47..2f04bfe88b 100644 --- a/osu.Game/Overlays/Options/Sections/Debug/GCOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Debug/GCOptions.cs @@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Options.Sections.Debug new OptionEnumDropDown { LabelText = "Active mode", - Bindable = config.GetWeldedBindable(FrameworkDebugConfig.ActiveGCMode) + Bindable = config.GetBindable(FrameworkDebugConfig.ActiveGCMode) }, new OsuButton { diff --git a/osu.Game/Overlays/Options/Sections/EditorSection.cs b/osu.Game/Overlays/Options/Sections/EditorSection.cs index b81a248901..513d89c601 100644 --- a/osu.Game/Overlays/Options/Sections/EditorSection.cs +++ b/osu.Game/Overlays/Options/Sections/EditorSection.cs @@ -24,32 +24,32 @@ namespace osu.Game.Overlays.Options.Sections new OsuCheckbox { LabelText = "Background video", - Bindable = config.GetWeldedBindable(OsuConfig.VideoEditor) + Bindable = config.GetBindable(OsuConfig.VideoEditor) }, new OsuCheckbox { LabelText = "Always use default skin", - Bindable = config.GetWeldedBindable(OsuConfig.EditorDefaultSkin) + Bindable = config.GetBindable(OsuConfig.EditorDefaultSkin) }, new OsuCheckbox { LabelText = "Snaking sliders", - Bindable = config.GetWeldedBindable(OsuConfig.EditorSnakingSliders) + Bindable = config.GetBindable(OsuConfig.EditorSnakingSliders) }, new OsuCheckbox { LabelText = "Hit animations", - Bindable = config.GetWeldedBindable(OsuConfig.EditorHitAnimations) + Bindable = config.GetBindable(OsuConfig.EditorHitAnimations) }, new OsuCheckbox { LabelText = "Follow points", - Bindable = config.GetWeldedBindable(OsuConfig.EditorFollowPoints) + Bindable = config.GetBindable(OsuConfig.EditorFollowPoints) }, new OsuCheckbox { LabelText = "Stacking", - Bindable = config.GetWeldedBindable(OsuConfig.EditorStacking) + Bindable = config.GetBindable(OsuConfig.EditorStacking) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Gameplay/GeneralOptions.cs b/osu.Game/Overlays/Options/Sections/Gameplay/GeneralOptions.cs index 505e8efc5b..1c28f6247d 100644 --- a/osu.Game/Overlays/Options/Sections/Gameplay/GeneralOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Gameplay/GeneralOptions.cs @@ -21,42 +21,42 @@ namespace osu.Game.Overlays.Options.Sections.Gameplay new OptionSlider { LabelText = "Background dim", - Bindable = (BindableInt)config.GetWeldedBindable(OsuConfig.DimLevel) + Bindable = (BindableInt)config.GetBindable(OsuConfig.DimLevel) }, new OptionEnumDropDown { LabelText = "Progress display", - Bindable = config.GetWeldedBindable(OsuConfig.ProgressBarType) + Bindable = config.GetBindable(OsuConfig.ProgressBarType) }, new OptionEnumDropDown { LabelText = "Score meter type", - Bindable = config.GetWeldedBindable(OsuConfig.ScoreMeter) + Bindable = config.GetBindable(OsuConfig.ScoreMeter) }, new OptionSlider { LabelText = "Score meter size", - Bindable = (BindableDouble)config.GetWeldedBindable(OsuConfig.ScoreMeterScale) + Bindable = (BindableDouble)config.GetBindable(OsuConfig.ScoreMeterScale) }, new OsuCheckbox { LabelText = "Always show key overlay", - Bindable = config.GetWeldedBindable(OsuConfig.KeyOverlay) + Bindable = config.GetBindable(OsuConfig.KeyOverlay) }, new OsuCheckbox { LabelText = "Show approach circle on first \"Hidden\" object", - Bindable = config.GetWeldedBindable(OsuConfig.HiddenShowFirstApproach) + Bindable = config.GetBindable(OsuConfig.HiddenShowFirstApproach) }, new OsuCheckbox { LabelText = "Scale osu!mania scroll speed with BPM", - Bindable = config.GetWeldedBindable(OsuConfig.ManiaSpeedBPMScale) + Bindable = config.GetBindable(OsuConfig.ManiaSpeedBPMScale) }, new OsuCheckbox { LabelText = "Remember osu!mania scroll speed per beatmap", - Bindable = config.GetWeldedBindable(OsuConfig.UsePerBeatmapManiaSpeed) + Bindable = config.GetBindable(OsuConfig.UsePerBeatmapManiaSpeed) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Gameplay/SongSelectOptions.cs b/osu.Game/Overlays/Options/Sections/Gameplay/SongSelectOptions.cs index d78916b223..be38a9847a 100644 --- a/osu.Game/Overlays/Options/Sections/Gameplay/SongSelectOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Gameplay/SongSelectOptions.cs @@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Gameplay new OptionSlider { LabelText = "Display beatmaps from", - Bindable = (BindableDouble)config.GetWeldedBindable(OsuConfig.DisplayStarsMinimum) + Bindable = (BindableDouble)config.GetBindable(OsuConfig.DisplayStarsMinimum) }, new OptionSlider { LabelText = "up to", - Bindable = (BindableDouble)config.GetWeldedBindable(OsuConfig.DisplayStarsMaximum) + Bindable = (BindableDouble)config.GetBindable(OsuConfig.DisplayStarsMaximum) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs b/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs index c45395ad68..dc29b56f44 100644 --- a/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs +++ b/osu.Game/Overlays/Options/Sections/General/LanguageOptions.cs @@ -21,12 +21,12 @@ namespace osu.Game.Overlays.Options.Sections.General new OsuCheckbox { LabelText = "Prefer metadata in original language", - Bindable = config.GetWeldedBindable(OsuConfig.ShowUnicode) + Bindable = config.GetBindable(OsuConfig.ShowUnicode) }, new OsuCheckbox { LabelText = "Use alternative font for chat display", - Bindable = config.GetWeldedBindable(OsuConfig.AlternativeChatFont) + Bindable = config.GetBindable(OsuConfig.AlternativeChatFont) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs b/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs index 16f316c25e..34f42aac43 100644 --- a/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs +++ b/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs @@ -122,12 +122,12 @@ namespace osu.Game.Overlays.Options.Sections.General new OsuCheckbox { LabelText = "Remember username", - Bindable = config.GetWeldedBindable(OsuConfig.SaveUsername), + Bindable = config.GetBindable(OsuConfig.SaveUsername), }, new OsuCheckbox { LabelText = "Stay logged in", - Bindable = config.GetWeldedBindable(OsuConfig.SavePassword), + Bindable = config.GetBindable(OsuConfig.SavePassword), }, new OsuButton { diff --git a/osu.Game/Overlays/Options/Sections/General/UpdateOptions.cs b/osu.Game/Overlays/Options/Sections/General/UpdateOptions.cs index 74feb73462..c45dc9cbd4 100644 --- a/osu.Game/Overlays/Options/Sections/General/UpdateOptions.cs +++ b/osu.Game/Overlays/Options/Sections/General/UpdateOptions.cs @@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options.Sections.General new OptionEnumDropDown { LabelText = "Release stream", - Bindable = config.GetWeldedBindable(OsuConfig.ReleaseStream), + Bindable = config.GetBindable(OsuConfig.ReleaseStream), }, new OptionLabel { Text = "Your osu! is up to date" }, // TODO: map this to reality new OsuButton diff --git a/osu.Game/Overlays/Options/Sections/Graphics/DetailOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/DetailOptions.cs index d9649cdf65..e66d097094 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/DetailOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/DetailOptions.cs @@ -20,47 +20,47 @@ namespace osu.Game.Overlays.Options.Sections.Graphics new OsuCheckbox { LabelText = "Snaking in sliders", - Bindable = config.GetWeldedBindable(OsuConfig.SnakingInSliders) + Bindable = config.GetBindable(OsuConfig.SnakingInSliders) }, new OsuCheckbox { LabelText = "Snaking out sliders", - Bindable = config.GetWeldedBindable(OsuConfig.SnakingOutSliders) + Bindable = config.GetBindable(OsuConfig.SnakingOutSliders) }, new OsuCheckbox { LabelText = "Background video", - Bindable = config.GetWeldedBindable(OsuConfig.Video) + Bindable = config.GetBindable(OsuConfig.Video) }, new OsuCheckbox { LabelText = "Storyboards", - Bindable = config.GetWeldedBindable(OsuConfig.ShowStoryboard) + Bindable = config.GetBindable(OsuConfig.ShowStoryboard) }, new OsuCheckbox { LabelText = "Combo bursts", - Bindable = config.GetWeldedBindable(OsuConfig.ComboBurst) + Bindable = config.GetBindable(OsuConfig.ComboBurst) }, new OsuCheckbox { LabelText = "Hit lighting", - Bindable = config.GetWeldedBindable(OsuConfig.HitLighting) + Bindable = config.GetBindable(OsuConfig.HitLighting) }, new OsuCheckbox { LabelText = "Shaders", - Bindable = config.GetWeldedBindable(OsuConfig.Bloom) + Bindable = config.GetBindable(OsuConfig.Bloom) }, new OsuCheckbox { LabelText = "Softening filter", - Bindable = config.GetWeldedBindable(OsuConfig.BloomSoftening) + Bindable = config.GetBindable(OsuConfig.BloomSoftening) }, new OptionEnumDropDown { LabelText = "Screenshot", - Bindable = config.GetWeldedBindable(OsuConfig.ScreenshotFormat) + Bindable = config.GetBindable(OsuConfig.ScreenshotFormat) } }; } diff --git a/osu.Game/Overlays/Options/Sections/Graphics/LayoutOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/LayoutOptions.cs index 66dbb3c75e..a3dbb9c76f 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/LayoutOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/LayoutOptions.cs @@ -21,22 +21,22 @@ namespace osu.Game.Overlays.Options.Sections.Graphics new OptionEnumDropDown { LabelText = "Screen mode", - Bindable = config.GetWeldedBindable(FrameworkConfig.WindowMode), + Bindable = config.GetBindable(FrameworkConfig.WindowMode), }, new OsuCheckbox { LabelText = "Letterboxing", - Bindable = config.GetWeldedBindable(FrameworkConfig.Letterboxing), + Bindable = config.GetBindable(FrameworkConfig.Letterboxing), }, new OptionSlider { LabelText = "Horizontal position", - Bindable = (BindableInt)config.GetWeldedBindable(FrameworkConfig.LetterboxPositionX) + Bindable = (BindableInt)config.GetBindable(FrameworkConfig.LetterboxPositionX) }, new OptionSlider { LabelText = "Vertical position", - Bindable = (BindableInt)config.GetWeldedBindable(FrameworkConfig.LetterboxPositionY) + Bindable = (BindableInt)config.GetBindable(FrameworkConfig.LetterboxPositionY) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Graphics/MainMenuOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/MainMenuOptions.cs index 6520dfc394..c5000d8547 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/MainMenuOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/MainMenuOptions.cs @@ -19,27 +19,27 @@ namespace osu.Game.Overlays.Options.Sections.Graphics new OsuCheckbox { LabelText = "Snow", - Bindable = config.GetWeldedBindable(OsuConfig.MenuSnow) + Bindable = config.GetBindable(OsuConfig.MenuSnow) }, new OsuCheckbox { LabelText = "Parallax", - Bindable = config.GetWeldedBindable(OsuConfig.MenuParallax) + Bindable = config.GetBindable(OsuConfig.MenuParallax) }, new OsuCheckbox { LabelText = "Menu tips", - Bindable = config.GetWeldedBindable(OsuConfig.ShowMenuTips) + Bindable = config.GetBindable(OsuConfig.ShowMenuTips) }, new OsuCheckbox { LabelText = "Interface voices", - Bindable = config.GetWeldedBindable(OsuConfig.MenuVoice) + Bindable = config.GetBindable(OsuConfig.MenuVoice) }, new OsuCheckbox { LabelText = "osu! music theme", - Bindable = config.GetWeldedBindable(OsuConfig.MenuMusic) + Bindable = config.GetBindable(OsuConfig.MenuMusic) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Graphics/RendererOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/RendererOptions.cs index f478d40a3f..b98337f1e6 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/RendererOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/RendererOptions.cs @@ -23,22 +23,22 @@ namespace osu.Game.Overlays.Options.Sections.Graphics new OptionEnumDropDown { LabelText = "Frame limiter", - Bindable = config.GetWeldedBindable(FrameworkConfig.FrameSync) + Bindable = config.GetBindable(FrameworkConfig.FrameSync) }, new OsuCheckbox { LabelText = "Show FPS counter", - Bindable = osuConfig.GetWeldedBindable(OsuConfig.FpsCounter), + Bindable = osuConfig.GetBindable(OsuConfig.FpsCounter), }, new OsuCheckbox { LabelText = "Reduce dropped frames", - Bindable = osuConfig.GetWeldedBindable(OsuConfig.ForceFrameFlush), + Bindable = osuConfig.GetBindable(OsuConfig.ForceFrameFlush), }, new OsuCheckbox { LabelText = "Detect performance issues", - Bindable = osuConfig.GetWeldedBindable(OsuConfig.DetectPerformanceIssues), + Bindable = osuConfig.GetBindable(OsuConfig.DetectPerformanceIssues), }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs b/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs index 083606f141..d4855a1619 100644 --- a/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Graphics/SongSelectGraphicsOptions.cs @@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Options.Sections.Graphics new OsuCheckbox { LabelText = "Show thumbnails", - Bindable = config.GetWeldedBindable(OsuConfig.SongSelectThumbnails) + Bindable = config.GetBindable(OsuConfig.SongSelectThumbnails) } }; } diff --git a/osu.Game/Overlays/Options/Sections/Input/MouseOptions.cs b/osu.Game/Overlays/Options/Sections/Input/MouseOptions.cs index 4a6d1fb79e..ef1dd755b7 100644 --- a/osu.Game/Overlays/Options/Sections/Input/MouseOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Input/MouseOptions.cs @@ -21,37 +21,37 @@ namespace osu.Game.Overlays.Options.Sections.Input new OptionSlider { LabelText = "Sensitivity", - Bindable = (BindableDouble)config.GetWeldedBindable(OsuConfig.MouseSpeed), + Bindable = (BindableDouble)config.GetBindable(OsuConfig.MouseSpeed), }, new OsuCheckbox { LabelText = "Raw input", - Bindable = config.GetWeldedBindable(OsuConfig.RawInput) + Bindable = config.GetBindable(OsuConfig.RawInput) }, new OsuCheckbox { LabelText = "Map absolute raw input to the osu! window", - Bindable = config.GetWeldedBindable(OsuConfig.AbsoluteToOsuWindow) + Bindable = config.GetBindable(OsuConfig.AbsoluteToOsuWindow) }, new OptionEnumDropDown { LabelText = "Confine mouse cursor", - Bindable = config.GetWeldedBindable(OsuConfig.ConfineMouse), + Bindable = config.GetBindable(OsuConfig.ConfineMouse), }, new OsuCheckbox { LabelText = "Disable mouse wheel in play mode", - Bindable = config.GetWeldedBindable(OsuConfig.MouseDisableWheel) + Bindable = config.GetBindable(OsuConfig.MouseDisableWheel) }, new OsuCheckbox { LabelText = "Disable mouse buttons in play mode", - Bindable = config.GetWeldedBindable(OsuConfig.MouseDisableButtons) + Bindable = config.GetBindable(OsuConfig.MouseDisableButtons) }, new OsuCheckbox { LabelText = "Cursor ripples", - Bindable = config.GetWeldedBindable(OsuConfig.CursorRipple) + Bindable = config.GetBindable(OsuConfig.CursorRipple) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Input/OtherInputOptions.cs b/osu.Game/Overlays/Options/Sections/Input/OtherInputOptions.cs index dd3e0f81f9..9323f7514b 100644 --- a/osu.Game/Overlays/Options/Sections/Input/OtherInputOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Input/OtherInputOptions.cs @@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Input new OsuCheckbox { LabelText = "OS TabletPC support", - Bindable = config.GetWeldedBindable(OsuConfig.Tablet) + Bindable = config.GetBindable(OsuConfig.Tablet) }, new OsuCheckbox { LabelText = "Wiimote/TaTaCon Drum Support", - Bindable = config.GetWeldedBindable(OsuConfig.Wiimote) + Bindable = config.GetBindable(OsuConfig.Wiimote) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Online/InGameChatOptions.cs b/osu.Game/Overlays/Options/Sections/Online/InGameChatOptions.cs index 7d240aa97d..9a477f40c7 100644 --- a/osu.Game/Overlays/Options/Sections/Online/InGameChatOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/InGameChatOptions.cs @@ -20,32 +20,32 @@ namespace osu.Game.Overlays.Options.Sections.Online new OsuCheckbox { LabelText = "Filter offensive words", - Bindable = config.GetWeldedBindable(OsuConfig.ChatFilter) + Bindable = config.GetBindable(OsuConfig.ChatFilter) }, new OsuCheckbox { LabelText = "Filter foreign characters", - Bindable = config.GetWeldedBindable(OsuConfig.ChatRemoveForeign) + Bindable = config.GetBindable(OsuConfig.ChatRemoveForeign) }, new OsuCheckbox { LabelText = "Log private messages", - Bindable = config.GetWeldedBindable(OsuConfig.LogPrivateMessages) + Bindable = config.GetBindable(OsuConfig.LogPrivateMessages) }, new OsuCheckbox { LabelText = "Block private messages from non-friends", - Bindable = config.GetWeldedBindable(OsuConfig.BlockNonFriendPM) + Bindable = config.GetBindable(OsuConfig.BlockNonFriendPM) }, new OptionLabel { Text = "Chat ignore list (space-seperated list)" }, new OptionTextBox { RelativeSizeAxes = Axes.X, - Bindable = config.GetWeldedBindable(OsuConfig.IgnoreList) + Bindable = config.GetBindable(OsuConfig.IgnoreList) }, new OptionLabel { Text = "Chat highlight words (space-seperated list)" }, new OptionTextBox { RelativeSizeAxes = Axes.X, - Bindable = config.GetWeldedBindable(OsuConfig.HighlightWords) + Bindable = config.GetBindable(OsuConfig.HighlightWords) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Online/IntegrationOptions.cs b/osu.Game/Overlays/Options/Sections/Online/IntegrationOptions.cs index d8c3715fb9..d4298ee43c 100644 --- a/osu.Game/Overlays/Options/Sections/Online/IntegrationOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/IntegrationOptions.cs @@ -20,22 +20,22 @@ namespace osu.Game.Overlays.Options.Sections.Online new OsuCheckbox { LabelText = "Integrate with Yahoo! status display", - Bindable = config.GetWeldedBindable(OsuConfig.YahooIntegration) + Bindable = config.GetBindable(OsuConfig.YahooIntegration) }, new OsuCheckbox { LabelText = "Integrate with MSN Live status display", - Bindable = config.GetWeldedBindable(OsuConfig.MsnIntegration) + Bindable = config.GetBindable(OsuConfig.MsnIntegration) }, new OsuCheckbox { LabelText = "Automatically start osu!direct downloads", - Bindable = config.GetWeldedBindable(OsuConfig.AutomaticDownload) + Bindable = config.GetBindable(OsuConfig.AutomaticDownload) }, new OsuCheckbox { LabelText = "Prefer no-video downloads", - Bindable = config.GetWeldedBindable(OsuConfig.AutomaticDownloadNoVideo) + Bindable = config.GetBindable(OsuConfig.AutomaticDownloadNoVideo) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs b/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs index 39ae381e5d..4614210e9f 100644 --- a/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/NotificationsOptions.cs @@ -20,32 +20,32 @@ namespace osu.Game.Overlays.Options.Sections.Online new OsuCheckbox { LabelText = "Enable chat ticker", - Bindable = config.GetWeldedBindable(OsuConfig.Ticker) + Bindable = config.GetBindable(OsuConfig.Ticker) }, new OsuCheckbox { LabelText = "Show a notification popup when someone says your name", - Bindable = config.GetWeldedBindable(OsuConfig.ChatHighlightName) + Bindable = config.GetBindable(OsuConfig.ChatHighlightName) }, new OsuCheckbox { LabelText = "Show chat message notifications", - Bindable = config.GetWeldedBindable(OsuConfig.ChatMessageNotification) + Bindable = config.GetBindable(OsuConfig.ChatMessageNotification) }, new OsuCheckbox { LabelText = "Play a sound when someone says your name", - Bindable = config.GetWeldedBindable(OsuConfig.ChatAudibleHighlight) + Bindable = config.GetBindable(OsuConfig.ChatAudibleHighlight) }, new OsuCheckbox { LabelText = "Show notification popups instantly during gameplay", - Bindable = config.GetWeldedBindable(OsuConfig.PopupDuringGameplay) + Bindable = config.GetBindable(OsuConfig.PopupDuringGameplay) }, new OsuCheckbox { LabelText = "Show notification popups when friends change status", - Bindable = config.GetWeldedBindable(OsuConfig.NotifyFriends) + Bindable = config.GetBindable(OsuConfig.NotifyFriends) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs b/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs index a79bc4f542..fb2adbb2ac 100644 --- a/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs +++ b/osu.Game/Overlays/Options/Sections/Online/PrivacyOptions.cs @@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Online new OsuCheckbox { LabelText = "Share your city location with others", - Bindable = config.GetWeldedBindable(OsuConfig.DisplayCityLocation) + Bindable = config.GetBindable(OsuConfig.DisplayCityLocation) }, new OsuCheckbox { LabelText = "Allow multiplayer game invites from all users", - Bindable = config.GetWeldedBindable(OsuConfig.AllowPublicInvites) + Bindable = config.GetBindable(OsuConfig.AllowPublicInvites) }, }; } diff --git a/osu.Game/Overlays/Options/Sections/SkinSection.cs b/osu.Game/Overlays/Options/Sections/SkinSection.cs index f7968b8f66..56dd9ca318 100644 --- a/osu.Game/Overlays/Options/Sections/SkinSection.cs +++ b/osu.Game/Overlays/Options/Sections/SkinSection.cs @@ -42,32 +42,32 @@ namespace osu.Game.Overlays.Options.Sections new OsuCheckbox { LabelText = "Ignore all beatmap skins", - Bindable = config.GetWeldedBindable(OsuConfig.IgnoreBeatmapSkins) + Bindable = config.GetBindable(OsuConfig.IgnoreBeatmapSkins) }, new OsuCheckbox { LabelText = "Use skin's sound samples", - Bindable = config.GetWeldedBindable(OsuConfig.SkinSamples) + Bindable = config.GetBindable(OsuConfig.SkinSamples) }, new OsuCheckbox { LabelText = "Use Taiko skin for Taiko mode", - Bindable = config.GetWeldedBindable(OsuConfig.UseTaikoSkin) + Bindable = config.GetBindable(OsuConfig.UseTaikoSkin) }, new OsuCheckbox { LabelText = "Always use skin cursor", - Bindable = config.GetWeldedBindable(OsuConfig.UseSkinCursor) + Bindable = config.GetBindable(OsuConfig.UseSkinCursor) }, new OptionSlider { LabelText = "Cursor size", - Bindable = (BindableDouble)config.GetWeldedBindable(OsuConfig.CursorSize) + Bindable = (BindableDouble)config.GetBindable(OsuConfig.CursorSize) }, new OsuCheckbox { LabelText = "Automatic cursor size", - Bindable = config.GetWeldedBindable(OsuConfig.AutomaticCursorSizing) + Bindable = config.GetBindable(OsuConfig.AutomaticCursorSizing) }, }; } diff --git a/osu.Game/Screens/OsuGameScreen.cs b/osu.Game/Screens/OsuGameScreen.cs index 70bf70ad1d..519d1f8aa9 100644 --- a/osu.Game/Screens/OsuGameScreen.cs +++ b/osu.Game/Screens/OsuGameScreen.cs @@ -46,7 +46,8 @@ namespace osu.Game.Screens [BackgroundDependencyLoader(permitNulls: true)] private void load(OsuGameBase game) { - beatmap.Weld(game?.Beatmap); + if (game != null) + beatmap.BindTo(game.Beatmap); beatmap.ValueChanged += beatmap_ValueChanged; } diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs index b94a130bdc..b552601458 100644 --- a/osu.Game/Screens/Play/Player.cs +++ b/osu.Game/Screens/Play/Player.cs @@ -71,7 +71,7 @@ namespace osu.Game.Screens.Play [BackgroundDependencyLoader] private void load(AudioManager audio, BeatmapDatabase beatmaps, OsuGameBase game, OsuConfigManager config) { - dimLevel = config.GetWeldedBindable(OsuConfig.DimLevel); + dimLevel = config.GetBindable(OsuConfig.DimLevel); try { if (Beatmap == null) diff --git a/osu.Game/Screens/Play/PlayerInputManager.cs b/osu.Game/Screens/Play/PlayerInputManager.cs index 3bafc3935a..181cd68da9 100644 --- a/osu.Game/Screens/Play/PlayerInputManager.cs +++ b/osu.Game/Screens/Play/PlayerInputManager.cs @@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play [BackgroundDependencyLoader] private void load(OsuConfigManager config) { - mouseDisabled = config.GetWeldedBindable(OsuConfig.MouseDisableButtons) + mouseDisabled = config.GetBindable(OsuConfig.MouseDisableButtons) ?? new Bindable(false); }