mirror of
https://github.com/ppy/osu.git
synced 2025-01-27 18:32:56 +08:00
Removed explicit methods
This commit is contained in:
parent
f12a8ace3f
commit
e25b8bb298
@ -169,20 +169,18 @@ namespace osu.Game.Configuration
|
|||||||
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
Set(OsuConfig.ConfineMouse, Get<bool>(OsuConfig.ConfineMouseToFullscreen) ?
|
||||||
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never);
|
ConfineMouseMode.Fullscreen : ConfineMouseMode.Never);
|
||||||
|
|
||||||
GetBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate { eventPassword(); };
|
|
||||||
GetBindable<bool>(OsuConfig.SaveUsername).ValueChanged += delegate { eventUsername(); };
|
|
||||||
#pragma warning restore CS0612 // Type or member is obsolete
|
|
||||||
}
|
|
||||||
|
|
||||||
private void eventPassword()
|
GetBindable<bool>(OsuConfig.SavePassword).ValueChanged += delegate
|
||||||
{
|
{
|
||||||
if ((GetBindable<bool>(OsuConfig.SavePassword) == true) && (GetBindable<bool>(OsuConfig.SaveUsername) == false))
|
if (Get<bool>(OsuConfig.SavePassword) && !Get<bool>(OsuConfig.SaveUsername))
|
||||||
Set(OsuConfig.SaveUsername, true);
|
Set(OsuConfig.SaveUsername, true);
|
||||||
}
|
};
|
||||||
private void eventUsername()
|
GetBindable<bool>(OsuConfig.SaveUsername).ValueChanged += delegate
|
||||||
{
|
{
|
||||||
if ((GetBindable<bool>(OsuConfig.SaveUsername) == false) && (GetBindable<bool>(OsuConfig.SavePassword) == true))
|
if (!Get<bool>(OsuConfig.SaveUsername) && Get<bool>(OsuConfig.SavePassword))
|
||||||
Set(OsuConfig.SavePassword, false);
|
Set(OsuConfig.SavePassword, false);
|
||||||
|
};
|
||||||
|
#pragma warning restore CS0612 // Type or member is obsolete
|
||||||
}
|
}
|
||||||
|
|
||||||
//todo: make a UnicodeString class/struct rather than requiring this helper method.
|
//todo: make a UnicodeString class/struct rather than requiring this helper method.
|
||||||
|
Loading…
Reference in New Issue
Block a user