1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 09:22:54 +08:00

Rename Criteria -> CreateCriteria and make into method.

This commit is contained in:
smoogipooo 2017-03-18 02:11:14 +09:00
parent cd30958086
commit bcaf12e3d9

View File

@ -37,7 +37,7 @@ namespace osu.Game.Screens.Select
if (sort != value) if (sort != value)
{ {
sort = value; sort = value;
FilterChanged?.Invoke(Criteria); FilterChanged?.Invoke(CreateCriteria());
} }
} }
} }
@ -51,12 +51,12 @@ namespace osu.Game.Screens.Select
if (group != value) if (group != value)
{ {
group = value; group = value;
FilterChanged?.Invoke(Criteria); FilterChanged?.Invoke(CreateCriteria());
} }
} }
} }
public FilterCriteria Criteria => new FilterCriteria public FilterCriteria CreateCriteria() => new FilterCriteria
{ {
Group = group, Group = group,
Sort = sort, Sort = sort,
@ -96,7 +96,7 @@ namespace osu.Game.Screens.Select
OnChange = (sender, newText) => OnChange = (sender, newText) =>
{ {
if (newText) if (newText)
FilterChanged?.Invoke(Criteria); FilterChanged?.Invoke(CreateCriteria());
}, },
Exit = () => Exit?.Invoke(), Exit = () => Exit?.Invoke(),
}, },