mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Remove unnecessary null check and tweak transform a bit.
This commit is contained in:
@ -70,9 +70,7 @@ namespace osu.Game.Online.API.Requests
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ruleset != null)
|
switch (ruleset?.Name)
|
||||||
{
|
|
||||||
switch (ruleset.Name)
|
|
||||||
{
|
{
|
||||||
default:
|
default:
|
||||||
case @"osu!":
|
case @"osu!":
|
||||||
@ -91,7 +89,6 @@ namespace osu.Game.Online.API.Requests
|
|||||||
req.AddParameter(@"mode", @"mania");
|
req.AddParameter(@"mode", @"mania");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return req;
|
return req;
|
||||||
}
|
}
|
||||||
|
@ -232,6 +232,8 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
|
|
||||||
if (api == null || Beatmap?.OnlineBeatmapID == null) return;
|
if (api == null || Beatmap?.OnlineBeatmapID == null) return;
|
||||||
|
|
||||||
|
loading.Show();
|
||||||
|
|
||||||
if (Scope == LeaderboardScope.Local)
|
if (Scope == LeaderboardScope.Local)
|
||||||
{
|
{
|
||||||
// TODO: get local scores from wherever here.
|
// TODO: get local scores from wherever here.
|
||||||
@ -239,8 +241,6 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
loading.Show();
|
|
||||||
|
|
||||||
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value, Scope);
|
getScoresRequest = new GetScoresRequest(Beatmap, osuGame?.Ruleset.Value, Scope);
|
||||||
getScoresRequest.Success += r =>
|
getScoresRequest.Success += r =>
|
||||||
{
|
{
|
||||||
@ -323,13 +323,13 @@ namespace osu.Game.Screens.Select.Leaderboards
|
|||||||
|
|
||||||
protected override bool OnMouseDown(Framework.Input.InputState state, Framework.Input.MouseDownEventArgs args)
|
protected override bool OnMouseDown(Framework.Input.InputState state, Framework.Input.MouseDownEventArgs args)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(0.8f, 200, Easing.InElastic);
|
icon.ScaleTo(0.8f, 800, Easing.InElastic);
|
||||||
return base.OnMouseDown(state, args);
|
return base.OnMouseDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseUp(Framework.Input.InputState state, Framework.Input.MouseUpEventArgs args)
|
protected override bool OnMouseUp(Framework.Input.InputState state, Framework.Input.MouseUpEventArgs args)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(1.2f, 400, Easing.OutElastic).Then().ScaleTo(1f, 400, Easing.OutElastic);
|
icon.ScaleTo(1.2f, 800, Easing.OutElastic).Then().ScaleTo(1f, 800, Easing.OutElastic);
|
||||||
return base.OnMouseUp(state, args);
|
return base.OnMouseUp(state, args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user