mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Post-merge fixes (and CodeFactor fixes)
This commit is contained in:
@ -35,12 +35,15 @@ namespace osu.Game.Configuration
|
|||||||
|
|
||||||
Set(OsuConfig.MenuParallax, true);
|
Set(OsuConfig.MenuParallax, true);
|
||||||
|
|
||||||
|
Set(OsuConfig.MenuVoice, true);
|
||||||
|
Set(OsuConfig.MenuMusic, true);
|
||||||
|
|
||||||
Set(OsuConfig.BeatmapDetailTab, BeatmapDetailTab.Details);
|
Set(OsuConfig.BeatmapDetailTab, BeatmapDetailTab.Details);
|
||||||
|
|
||||||
Set(OsuConfig.ShowInterface, true);
|
Set(OsuConfig.ShowInterface, true);
|
||||||
Set(OsuConfig.KeyOverlay, false);
|
Set(OsuConfig.KeyOverlay, false);
|
||||||
//todo: implement all settings below this line (remove the Disabled set when doing so).
|
|
||||||
|
|
||||||
|
//todo: implement all settings below this line (remove the Disabled set when doing so).
|
||||||
Set(OsuConfig.AudioOffset, 0, -500.0, 500.0);
|
Set(OsuConfig.AudioOffset, 0, -500.0, 500.0);
|
||||||
|
|
||||||
Set(OsuConfig.MouseSpeed, 1.0).Disabled = true;
|
Set(OsuConfig.MouseSpeed, 1.0).Disabled = true;
|
||||||
@ -178,8 +181,7 @@ namespace osu.Game.Configuration
|
|||||||
Set(OsuConfig.CanForceOptimusCompatibility, true).Disabled = true;
|
Set(OsuConfig.CanForceOptimusCompatibility, true).Disabled = true;
|
||||||
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
||||||
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never).Disabled = true;
|
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never).Disabled = true;
|
||||||
|
|
||||||
|
|
||||||
GetOriginalBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate
|
GetOriginalBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate
|
||||||
{
|
{
|
||||||
if (Get<bool>(OsuConfig.SavePassword)) Set(OsuConfig.SaveUsername, true);
|
if (Get<bool>(OsuConfig.SavePassword)) Set(OsuConfig.SaveUsername, true);
|
||||||
@ -344,6 +346,5 @@ namespace osu.Game.Configuration
|
|||||||
Ticker,
|
Ticker,
|
||||||
CompatibilityContext,
|
CompatibilityContext,
|
||||||
CanForceOptimusCompatibility,
|
CanForceOptimusCompatibility,
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -72,19 +72,18 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
welcome = audio.Sample.Get(@"welcome");
|
welcome = audio.Sample.Get(@"welcome");
|
||||||
seeya = audio.Sample.Get(@"seeya");
|
seeya = audio.Sample.Get(@"seeya");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnEntering(Screen last)
|
protected override void OnEntering(Screen last)
|
||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
|
|
||||||
if(menuVoice)
|
if (menuVoice)
|
||||||
welcome.Play();
|
welcome.Play();
|
||||||
|
|
||||||
Scheduler.AddDelayed(delegate
|
Scheduler.AddDelayed(delegate
|
||||||
{
|
{
|
||||||
if(menuMusic)
|
if (menuMusic)
|
||||||
bgm.Start();
|
bgm.Start();
|
||||||
|
|
||||||
LoadComponentAsync(mainMenu = new MainMenu());
|
LoadComponentAsync(mainMenu = new MainMenu());
|
||||||
|
@ -106,7 +106,7 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
base.OnEntering(last);
|
base.OnEntering(last);
|
||||||
buttons.FadeInFromZero(500);
|
buttons.FadeInFromZero(500);
|
||||||
if(last is Intro && song != null)
|
if (last is Intro && song != null)
|
||||||
Task.Run(() =>
|
Task.Run(() =>
|
||||||
{
|
{
|
||||||
trackManager.SetExclusive(song.Track);
|
trackManager.SetExclusive(song.Track);
|
||||||
|
Reference in New Issue
Block a user