Weld -> BindWith.

This commit is contained in:
Dean Herbert 2017-02-27 12:24:50 +09:00
parent bc231c6bd4
commit 47997c20ad
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49
31 changed files with 94 additions and 93 deletions

View File

@ -79,8 +79,8 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Pieces
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
snakingIn = config.GetWeldedBindable<bool>(OsuConfig.SnakingInSliders);
snakingOut = config.GetWeldedBindable<bool>(OsuConfig.SnakingOutSliders);
snakingIn = config.GetBindable<bool>(OsuConfig.SnakingInSliders);
snakingOut = config.GetBindable<bool>(OsuConfig.SnakingOutSliders);
int textureWidth = (int)PathWidth * 2;

View File

@ -79,7 +79,7 @@ namespace osu.Game.Beatmaps.Drawables
{
this.config = config;
preferUnicode = config.GetWeldedBindable<bool>(OsuConfig.ShowUnicode);
preferUnicode = config.GetBindable<bool>(OsuConfig.ShowUnicode);
preferUnicode.ValueChanged += preferUnicode_changed;
preferUnicode_changed(preferUnicode, null);
}

View File

@ -40,7 +40,7 @@ namespace osu.Game.Graphics.Containers
private void load(UserInputManager input, OsuConfigManager config)
{
this.input = input;
parallaxEnabled = config.GetWeldedBindable<bool>(OsuConfig.MenuParallax);
parallaxEnabled = config.GetBindable<bool>(OsuConfig.MenuParallax);
parallaxEnabled.ValueChanged += delegate
{
if (!parallaxEnabled)

View File

@ -54,7 +54,7 @@ namespace osu.Game.Graphics.Cursor
[BackgroundDependencyLoader]
private void load(TextureStore textures, OsuConfigManager config)
{
cursorScale = config.GetWeldedBindable<double>(OsuConfig.CursorSize);
cursorScale = config.GetBindable<double>(OsuConfig.CursorSize);
Children = new Drawable[]
{

View File

@ -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;

View File

@ -87,7 +87,7 @@ namespace osu.Game
Dependencies.Cache(this);
PlayMode = LocalConfig.GetWeldedBindable<PlayMode>(OsuConfig.PlayMode);
PlayMode = LocalConfig.GetBindable<PlayMode>(OsuConfig.PlayMode);
}
protected async void ImportBeatmapsAsync(IEnumerable<string> paths)

View File

@ -211,7 +211,7 @@ namespace osu.Game.Overlays
this.beatmaps = beatmaps;
trackManager = osuGame.Audio.Track;
preferUnicode = config.GetWeldedBindable<bool>(OsuConfig.ShowUnicode);
preferUnicode = config.GetBindable<bool>(OsuConfig.ShowUnicode);
preferUnicode.ValueChanged += preferUnicode_changed;
beatmapSource = osuGame.Beatmap ?? new Bindable<WorkingBeatmap>();

View File

@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options.Sections.Audio
new OptionSlider<int>
{
LabelText = "Universal Offset",
Bindable = (BindableInt)config.GetWeldedBindable<int>(OsuConfig.Offset)
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.Offset)
},
new OsuButton
{

View File

@ -24,7 +24,7 @@ namespace osu.Game.Overlays.Options.Sections.Audio
new OsuCheckbox
{
LabelText = "Ignore beatmap hitsounds",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.IgnoreBeatmapSamples)
Bindable = config.GetBindable<bool>(OsuConfig.IgnoreBeatmapSamples)
}
};
}

View File

@ -23,7 +23,7 @@ namespace osu.Game.Overlays.Options.Sections.Debug
new OptionEnumDropDown<GCLatencyMode>
{
LabelText = "Active mode",
Bindable = config.GetWeldedBindable<GCLatencyMode>(FrameworkDebugConfig.ActiveGCMode)
Bindable = config.GetBindable<GCLatencyMode>(FrameworkDebugConfig.ActiveGCMode)
},
new OsuButton
{

View File

@ -24,32 +24,32 @@ namespace osu.Game.Overlays.Options.Sections
new OsuCheckbox
{
LabelText = "Background video",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.VideoEditor)
Bindable = config.GetBindable<bool>(OsuConfig.VideoEditor)
},
new OsuCheckbox
{
LabelText = "Always use default skin",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.EditorDefaultSkin)
Bindable = config.GetBindable<bool>(OsuConfig.EditorDefaultSkin)
},
new OsuCheckbox
{
LabelText = "Snaking sliders",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.EditorSnakingSliders)
Bindable = config.GetBindable<bool>(OsuConfig.EditorSnakingSliders)
},
new OsuCheckbox
{
LabelText = "Hit animations",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.EditorHitAnimations)
Bindable = config.GetBindable<bool>(OsuConfig.EditorHitAnimations)
},
new OsuCheckbox
{
LabelText = "Follow points",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.EditorFollowPoints)
Bindable = config.GetBindable<bool>(OsuConfig.EditorFollowPoints)
},
new OsuCheckbox
{
LabelText = "Stacking",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.EditorStacking)
Bindable = config.GetBindable<bool>(OsuConfig.EditorStacking)
},
};
}

View File

@ -21,42 +21,42 @@ namespace osu.Game.Overlays.Options.Sections.Gameplay
new OptionSlider<int>
{
LabelText = "Background dim",
Bindable = (BindableInt)config.GetWeldedBindable<int>(OsuConfig.DimLevel)
Bindable = (BindableInt)config.GetBindable<int>(OsuConfig.DimLevel)
},
new OptionEnumDropDown<ProgressBarType>
{
LabelText = "Progress display",
Bindable = config.GetWeldedBindable<ProgressBarType>(OsuConfig.ProgressBarType)
Bindable = config.GetBindable<ProgressBarType>(OsuConfig.ProgressBarType)
},
new OptionEnumDropDown<ScoreMeterType>
{
LabelText = "Score meter type",
Bindable = config.GetWeldedBindable<ScoreMeterType>(OsuConfig.ScoreMeter)
Bindable = config.GetBindable<ScoreMeterType>(OsuConfig.ScoreMeter)
},
new OptionSlider<double>
{
LabelText = "Score meter size",
Bindable = (BindableDouble)config.GetWeldedBindable<double>(OsuConfig.ScoreMeterScale)
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.ScoreMeterScale)
},
new OsuCheckbox
{
LabelText = "Always show key overlay",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.KeyOverlay)
Bindable = config.GetBindable<bool>(OsuConfig.KeyOverlay)
},
new OsuCheckbox
{
LabelText = "Show approach circle on first \"Hidden\" object",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.HiddenShowFirstApproach)
Bindable = config.GetBindable<bool>(OsuConfig.HiddenShowFirstApproach)
},
new OsuCheckbox
{
LabelText = "Scale osu!mania scroll speed with BPM",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ManiaSpeedBPMScale)
Bindable = config.GetBindable<bool>(OsuConfig.ManiaSpeedBPMScale)
},
new OsuCheckbox
{
LabelText = "Remember osu!mania scroll speed per beatmap",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.UsePerBeatmapManiaSpeed)
Bindable = config.GetBindable<bool>(OsuConfig.UsePerBeatmapManiaSpeed)
},
};
}

View File

@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Gameplay
new OptionSlider<double>
{
LabelText = "Display beatmaps from",
Bindable = (BindableDouble)config.GetWeldedBindable<double>(OsuConfig.DisplayStarsMinimum)
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.DisplayStarsMinimum)
},
new OptionSlider<double>
{
LabelText = "up to",
Bindable = (BindableDouble)config.GetWeldedBindable<double>(OsuConfig.DisplayStarsMaximum)
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.DisplayStarsMaximum)
},
};
}

View File

@ -21,12 +21,12 @@ namespace osu.Game.Overlays.Options.Sections.General
new OsuCheckbox
{
LabelText = "Prefer metadata in original language",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ShowUnicode)
Bindable = config.GetBindable<bool>(OsuConfig.ShowUnicode)
},
new OsuCheckbox
{
LabelText = "Use alternative font for chat display",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AlternativeChatFont)
Bindable = config.GetBindable<bool>(OsuConfig.AlternativeChatFont)
},
};
}

View File

@ -122,12 +122,12 @@ namespace osu.Game.Overlays.Options.Sections.General
new OsuCheckbox
{
LabelText = "Remember username",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SaveUsername),
Bindable = config.GetBindable<bool>(OsuConfig.SaveUsername),
},
new OsuCheckbox
{
LabelText = "Stay logged in",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SavePassword),
Bindable = config.GetBindable<bool>(OsuConfig.SavePassword),
},
new OsuButton
{

View File

@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options.Sections.General
new OptionEnumDropDown<ReleaseStream>
{
LabelText = "Release stream",
Bindable = config.GetWeldedBindable<ReleaseStream>(OsuConfig.ReleaseStream),
Bindable = config.GetBindable<ReleaseStream>(OsuConfig.ReleaseStream),
},
new OptionLabel { Text = "Your osu! is up to date" }, // TODO: map this to reality
new OsuButton

View File

@ -20,47 +20,47 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
new OsuCheckbox
{
LabelText = "Snaking in sliders",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SnakingInSliders)
Bindable = config.GetBindable<bool>(OsuConfig.SnakingInSliders)
},
new OsuCheckbox
{
LabelText = "Snaking out sliders",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SnakingOutSliders)
Bindable = config.GetBindable<bool>(OsuConfig.SnakingOutSliders)
},
new OsuCheckbox
{
LabelText = "Background video",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.Video)
Bindable = config.GetBindable<bool>(OsuConfig.Video)
},
new OsuCheckbox
{
LabelText = "Storyboards",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ShowStoryboard)
Bindable = config.GetBindable<bool>(OsuConfig.ShowStoryboard)
},
new OsuCheckbox
{
LabelText = "Combo bursts",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ComboBurst)
Bindable = config.GetBindable<bool>(OsuConfig.ComboBurst)
},
new OsuCheckbox
{
LabelText = "Hit lighting",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.HitLighting)
Bindable = config.GetBindable<bool>(OsuConfig.HitLighting)
},
new OsuCheckbox
{
LabelText = "Shaders",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.Bloom)
Bindable = config.GetBindable<bool>(OsuConfig.Bloom)
},
new OsuCheckbox
{
LabelText = "Softening filter",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.BloomSoftening)
Bindable = config.GetBindable<bool>(OsuConfig.BloomSoftening)
},
new OptionEnumDropDown<ScreenshotFormat>
{
LabelText = "Screenshot",
Bindable = config.GetWeldedBindable<ScreenshotFormat>(OsuConfig.ScreenshotFormat)
Bindable = config.GetBindable<ScreenshotFormat>(OsuConfig.ScreenshotFormat)
}
};
}

View File

@ -21,22 +21,22 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
new OptionEnumDropDown<WindowMode>
{
LabelText = "Screen mode",
Bindable = config.GetWeldedBindable<WindowMode>(FrameworkConfig.WindowMode),
Bindable = config.GetBindable<WindowMode>(FrameworkConfig.WindowMode),
},
new OsuCheckbox
{
LabelText = "Letterboxing",
Bindable = config.GetWeldedBindable<bool>(FrameworkConfig.Letterboxing),
Bindable = config.GetBindable<bool>(FrameworkConfig.Letterboxing),
},
new OptionSlider<int>
{
LabelText = "Horizontal position",
Bindable = (BindableInt)config.GetWeldedBindable<int>(FrameworkConfig.LetterboxPositionX)
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionX)
},
new OptionSlider<int>
{
LabelText = "Vertical position",
Bindable = (BindableInt)config.GetWeldedBindable<int>(FrameworkConfig.LetterboxPositionY)
Bindable = (BindableInt)config.GetBindable<int>(FrameworkConfig.LetterboxPositionY)
},
};
}

View File

@ -19,27 +19,27 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
new OsuCheckbox
{
LabelText = "Snow",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MenuSnow)
Bindable = config.GetBindable<bool>(OsuConfig.MenuSnow)
},
new OsuCheckbox
{
LabelText = "Parallax",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MenuParallax)
Bindable = config.GetBindable<bool>(OsuConfig.MenuParallax)
},
new OsuCheckbox
{
LabelText = "Menu tips",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ShowMenuTips)
Bindable = config.GetBindable<bool>(OsuConfig.ShowMenuTips)
},
new OsuCheckbox
{
LabelText = "Interface voices",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MenuVoice)
Bindable = config.GetBindable<bool>(OsuConfig.MenuVoice)
},
new OsuCheckbox
{
LabelText = "osu! music theme",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MenuMusic)
Bindable = config.GetBindable<bool>(OsuConfig.MenuMusic)
},
};
}

View File

@ -23,22 +23,22 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
new OptionEnumDropDown<FrameSync>
{
LabelText = "Frame limiter",
Bindable = config.GetWeldedBindable<FrameSync>(FrameworkConfig.FrameSync)
Bindable = config.GetBindable<FrameSync>(FrameworkConfig.FrameSync)
},
new OsuCheckbox
{
LabelText = "Show FPS counter",
Bindable = osuConfig.GetWeldedBindable<bool>(OsuConfig.FpsCounter),
Bindable = osuConfig.GetBindable<bool>(OsuConfig.FpsCounter),
},
new OsuCheckbox
{
LabelText = "Reduce dropped frames",
Bindable = osuConfig.GetWeldedBindable<bool>(OsuConfig.ForceFrameFlush),
Bindable = osuConfig.GetBindable<bool>(OsuConfig.ForceFrameFlush),
},
new OsuCheckbox
{
LabelText = "Detect performance issues",
Bindable = osuConfig.GetWeldedBindable<bool>(OsuConfig.DetectPerformanceIssues),
Bindable = osuConfig.GetBindable<bool>(OsuConfig.DetectPerformanceIssues),
},
};
}

View File

@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Options.Sections.Graphics
new OsuCheckbox
{
LabelText = "Show thumbnails",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SongSelectThumbnails)
Bindable = config.GetBindable<bool>(OsuConfig.SongSelectThumbnails)
}
};
}

View File

@ -21,37 +21,37 @@ namespace osu.Game.Overlays.Options.Sections.Input
new OptionSlider<double>
{
LabelText = "Sensitivity",
Bindable = (BindableDouble)config.GetWeldedBindable<double>(OsuConfig.MouseSpeed),
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.MouseSpeed),
},
new OsuCheckbox
{
LabelText = "Raw input",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.RawInput)
Bindable = config.GetBindable<bool>(OsuConfig.RawInput)
},
new OsuCheckbox
{
LabelText = "Map absolute raw input to the osu! window",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AbsoluteToOsuWindow)
Bindable = config.GetBindable<bool>(OsuConfig.AbsoluteToOsuWindow)
},
new OptionEnumDropDown<ConfineMouseMode>
{
LabelText = "Confine mouse cursor",
Bindable = config.GetWeldedBindable<ConfineMouseMode>(OsuConfig.ConfineMouse),
Bindable = config.GetBindable<ConfineMouseMode>(OsuConfig.ConfineMouse),
},
new OsuCheckbox
{
LabelText = "Disable mouse wheel in play mode",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MouseDisableWheel)
Bindable = config.GetBindable<bool>(OsuConfig.MouseDisableWheel)
},
new OsuCheckbox
{
LabelText = "Disable mouse buttons in play mode",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MouseDisableButtons)
Bindable = config.GetBindable<bool>(OsuConfig.MouseDisableButtons)
},
new OsuCheckbox
{
LabelText = "Cursor ripples",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.CursorRipple)
Bindable = config.GetBindable<bool>(OsuConfig.CursorRipple)
},
};
}

View File

@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Input
new OsuCheckbox
{
LabelText = "OS TabletPC support",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.Tablet)
Bindable = config.GetBindable<bool>(OsuConfig.Tablet)
},
new OsuCheckbox
{
LabelText = "Wiimote/TaTaCon Drum Support",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.Wiimote)
Bindable = config.GetBindable<bool>(OsuConfig.Wiimote)
},
};
}

View File

@ -20,32 +20,32 @@ namespace osu.Game.Overlays.Options.Sections.Online
new OsuCheckbox
{
LabelText = "Filter offensive words",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ChatFilter)
Bindable = config.GetBindable<bool>(OsuConfig.ChatFilter)
},
new OsuCheckbox
{
LabelText = "Filter foreign characters",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ChatRemoveForeign)
Bindable = config.GetBindable<bool>(OsuConfig.ChatRemoveForeign)
},
new OsuCheckbox
{
LabelText = "Log private messages",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.LogPrivateMessages)
Bindable = config.GetBindable<bool>(OsuConfig.LogPrivateMessages)
},
new OsuCheckbox
{
LabelText = "Block private messages from non-friends",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.BlockNonFriendPM)
Bindable = config.GetBindable<bool>(OsuConfig.BlockNonFriendPM)
},
new OptionLabel { Text = "Chat ignore list (space-seperated list)" },
new OptionTextBox {
RelativeSizeAxes = Axes.X,
Bindable = config.GetWeldedBindable<string>(OsuConfig.IgnoreList)
Bindable = config.GetBindable<string>(OsuConfig.IgnoreList)
},
new OptionLabel { Text = "Chat highlight words (space-seperated list)" },
new OptionTextBox {
RelativeSizeAxes = Axes.X,
Bindable = config.GetWeldedBindable<string>(OsuConfig.HighlightWords)
Bindable = config.GetBindable<string>(OsuConfig.HighlightWords)
},
};
}

View File

@ -20,22 +20,22 @@ namespace osu.Game.Overlays.Options.Sections.Online
new OsuCheckbox
{
LabelText = "Integrate with Yahoo! status display",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.YahooIntegration)
Bindable = config.GetBindable<bool>(OsuConfig.YahooIntegration)
},
new OsuCheckbox
{
LabelText = "Integrate with MSN Live status display",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.MsnIntegration)
Bindable = config.GetBindable<bool>(OsuConfig.MsnIntegration)
},
new OsuCheckbox
{
LabelText = "Automatically start osu!direct downloads",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AutomaticDownload)
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownload)
},
new OsuCheckbox
{
LabelText = "Prefer no-video downloads",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AutomaticDownloadNoVideo)
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticDownloadNoVideo)
},
};
}

View File

@ -20,32 +20,32 @@ namespace osu.Game.Overlays.Options.Sections.Online
new OsuCheckbox
{
LabelText = "Enable chat ticker",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.Ticker)
Bindable = config.GetBindable<bool>(OsuConfig.Ticker)
},
new OsuCheckbox
{
LabelText = "Show a notification popup when someone says your name",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ChatHighlightName)
Bindable = config.GetBindable<bool>(OsuConfig.ChatHighlightName)
},
new OsuCheckbox
{
LabelText = "Show chat message notifications",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ChatMessageNotification)
Bindable = config.GetBindable<bool>(OsuConfig.ChatMessageNotification)
},
new OsuCheckbox
{
LabelText = "Play a sound when someone says your name",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.ChatAudibleHighlight)
Bindable = config.GetBindable<bool>(OsuConfig.ChatAudibleHighlight)
},
new OsuCheckbox
{
LabelText = "Show notification popups instantly during gameplay",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.PopupDuringGameplay)
Bindable = config.GetBindable<bool>(OsuConfig.PopupDuringGameplay)
},
new OsuCheckbox
{
LabelText = "Show notification popups when friends change status",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.NotifyFriends)
Bindable = config.GetBindable<bool>(OsuConfig.NotifyFriends)
},
};
}

View File

@ -20,12 +20,12 @@ namespace osu.Game.Overlays.Options.Sections.Online
new OsuCheckbox
{
LabelText = "Share your city location with others",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.DisplayCityLocation)
Bindable = config.GetBindable<bool>(OsuConfig.DisplayCityLocation)
},
new OsuCheckbox
{
LabelText = "Allow multiplayer game invites from all users",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AllowPublicInvites)
Bindable = config.GetBindable<bool>(OsuConfig.AllowPublicInvites)
},
};
}

View File

@ -42,32 +42,32 @@ namespace osu.Game.Overlays.Options.Sections
new OsuCheckbox
{
LabelText = "Ignore all beatmap skins",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.IgnoreBeatmapSkins)
Bindable = config.GetBindable<bool>(OsuConfig.IgnoreBeatmapSkins)
},
new OsuCheckbox
{
LabelText = "Use skin's sound samples",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.SkinSamples)
Bindable = config.GetBindable<bool>(OsuConfig.SkinSamples)
},
new OsuCheckbox
{
LabelText = "Use Taiko skin for Taiko mode",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.UseTaikoSkin)
Bindable = config.GetBindable<bool>(OsuConfig.UseTaikoSkin)
},
new OsuCheckbox
{
LabelText = "Always use skin cursor",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.UseSkinCursor)
Bindable = config.GetBindable<bool>(OsuConfig.UseSkinCursor)
},
new OptionSlider<double>
{
LabelText = "Cursor size",
Bindable = (BindableDouble)config.GetWeldedBindable<double>(OsuConfig.CursorSize)
Bindable = (BindableDouble)config.GetBindable<double>(OsuConfig.CursorSize)
},
new OsuCheckbox
{
LabelText = "Automatic cursor size",
Bindable = config.GetWeldedBindable<bool>(OsuConfig.AutomaticCursorSizing)
Bindable = config.GetBindable<bool>(OsuConfig.AutomaticCursorSizing)
},
};
}

View File

@ -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;
}

View File

@ -71,7 +71,7 @@ namespace osu.Game.Screens.Play
[BackgroundDependencyLoader]
private void load(AudioManager audio, BeatmapDatabase beatmaps, OsuGameBase game, OsuConfigManager config)
{
dimLevel = config.GetWeldedBindable<int>(OsuConfig.DimLevel);
dimLevel = config.GetBindable<int>(OsuConfig.DimLevel);
try
{
if (Beatmap == null)

View File

@ -25,7 +25,7 @@ namespace osu.Game.Screens.Play
[BackgroundDependencyLoader]
private void load(OsuConfigManager config)
{
mouseDisabled = config.GetWeldedBindable<bool>(OsuConfig.MouseDisableButtons)
mouseDisabled = config.GetBindable<bool>(OsuConfig.MouseDisableButtons)
?? new Bindable<bool>(false);
}