mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 10:42:55 +08:00
CI formatting
This commit is contained in:
parent
c2ea2bb5b0
commit
0a90965a5b
@ -9,7 +9,7 @@ using osu.Game.Beatmaps;
|
|||||||
namespace osu.Game.Database
|
namespace osu.Game.Database
|
||||||
{
|
{
|
||||||
internal class OnlineWorkingBeatmap : WorkingBeatmap
|
internal class OnlineWorkingBeatmap : WorkingBeatmap
|
||||||
{
|
{
|
||||||
private TextureStore textures;
|
private TextureStore textures;
|
||||||
private TrackManager tracks;
|
private TrackManager tracks;
|
||||||
|
|
||||||
|
@ -149,7 +149,6 @@ namespace osu.Game.Overlays.Direct
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private class DownloadButton : ClickableContainer
|
private class DownloadButton : ClickableContainer
|
||||||
@ -171,26 +170,26 @@ namespace osu.Game.Overlays.Direct
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(0.9f, 1000, EasingTypes.Out);
|
icon.ScaleTo(0.9f, 1000, EasingTypes.Out);
|
||||||
return base.OnMouseDown(state, args);
|
return base.OnMouseDown(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(1f, 500, EasingTypes.OutElastic);
|
icon.ScaleTo(1f, 500, EasingTypes.OutElastic);
|
||||||
return base.OnMouseUp(state, args);
|
return base.OnMouseUp(state, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override bool OnHover(InputState state)
|
protected override bool OnHover(InputState state)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(1.1f, 500, EasingTypes.OutElastic);
|
icon.ScaleTo(1.1f, 500, EasingTypes.OutElastic);
|
||||||
return base.OnHover(state);
|
return base.OnHover(state);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void OnHoverLost(InputState state)
|
protected override void OnHoverLost(InputState state)
|
||||||
{
|
{
|
||||||
icon.ScaleTo(1, 500, EasingTypes.OutElastic);
|
icon.ScaleTo(1, 500, EasingTypes.OutElastic);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
protected IEnumerable<DifficultyIcon> GetDifficultyIcons()
|
protected IEnumerable<DifficultyIcon> GetDifficultyIcons()
|
||||||
{
|
{
|
||||||
var icons = new List<DifficultyIcon>();
|
var icons = new List<DifficultyIcon>();
|
||||||
|
|
||||||
foreach (var b in SetInfo.Beatmaps)
|
foreach (var b in SetInfo.Beatmaps)
|
||||||
icons.Add(new DifficultyIcon(b));
|
icons.Add(new DifficultyIcon(b));
|
||||||
|
|
||||||
|
@ -8,10 +8,10 @@ namespace osu.Game.Overlays.Settings
|
|||||||
{
|
{
|
||||||
public class SettingsEnumDropdown<T> : SettingsDropdown<T>
|
public class SettingsEnumDropdown<T> : SettingsDropdown<T>
|
||||||
{
|
{
|
||||||
protected override Drawable CreateControl() => new OsuEnumDropdown<T>
|
protected override Drawable CreateControl() => new OsuEnumDropdown<T>
|
||||||
{
|
{
|
||||||
Margin = new MarginPadding { Top = 5 },
|
Margin = new MarginPadding { Top = 5 },
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user