1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 15:12:57 +08:00

DifficultyIcons -> GetDifficultyIcons()

This commit is contained in:
DrabWeb 2017-05-19 16:11:45 -03:00
parent a86d07cac7
commit c3d753a585
3 changed files with 7 additions and 10 deletions

View File

@ -144,7 +144,7 @@ namespace osu.Game.Overlays.Direct
AutoSizeAxes = Axes.X,
Height = 20,
Margin = new MarginPadding { Top = vertical_padding, Bottom = vertical_padding },
Children = DifficultyIcons,
Children = GetDifficultyIcons(),
},
},
},

View File

@ -83,7 +83,7 @@ namespace osu.Game.Overlays.Direct
AutoSizeAxes = Axes.X,
Height = 20,
Margin = new MarginPadding { Top = vertical_padding, Bottom = vertical_padding },
Children = DifficultyIcons,
Children = GetDifficultyIcons(),
},
},
},

View File

@ -19,17 +19,14 @@ namespace osu.Game.Overlays.Direct
{
protected readonly BeatmapSetInfo SetInfo;
protected IEnumerable<DifficultyIcon> DifficultyIcons
protected IEnumerable<DifficultyIcon> GetDifficultyIcons()
{
get
{
var icons = new List<DifficultyIcon>();
var icons = new List<DifficultyIcon>();
foreach (var b in SetInfo.Beatmaps)
icons.Add(new DifficultyIcon(b));
foreach (var b in SetInfo.Beatmaps)
icons.Add(new DifficultyIcon(b));
return icons;
}
return icons;
}
protected Drawable GetBackground(TextureStore textures)