mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Fix PaginatedProfileSubsection
ctor arguments
This commit is contained in:
@ -39,7 +39,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
private OsuSpriteText missing;
|
private OsuSpriteText missing;
|
||||||
private readonly LocalisableString? missingText;
|
private readonly LocalisableString? missingText;
|
||||||
|
|
||||||
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString headerText, LocalisableString? missingText = null)
|
protected PaginatedProfileSubsection(Bindable<User> user, LocalisableString? headerText = null, LocalisableString? missingText = null)
|
||||||
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
|
: base(user, headerText, CounterVisibilityState.AlwaysVisible)
|
||||||
{
|
{
|
||||||
this.missingText = missingText;
|
this.missingText = missingText;
|
||||||
|
@ -20,9 +20,9 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
|
|
||||||
private ProfileSubsectionHeader header;
|
private ProfileSubsectionHeader header;
|
||||||
|
|
||||||
protected ProfileSubsection(Bindable<User> user, LocalisableString headerText, CounterVisibilityState counterVisibilityState = CounterVisibilityState.AlwaysHidden)
|
protected ProfileSubsection(Bindable<User> user, LocalisableString? headerText = null, CounterVisibilityState counterVisibilityState = CounterVisibilityState.AlwaysHidden)
|
||||||
{
|
{
|
||||||
this.headerText = headerText;
|
this.headerText = headerText ?? string.Empty;
|
||||||
this.counterVisibilityState = counterVisibilityState;
|
this.counterVisibilityState = counterVisibilityState;
|
||||||
User.BindTo(user);
|
User.BindTo(user);
|
||||||
}
|
}
|
||||||
@ -38,7 +38,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
{
|
{
|
||||||
header = new ProfileSubsectionHeader(headerText, counterVisibilityState)
|
header = new ProfileSubsectionHeader(headerText, counterVisibilityState)
|
||||||
{
|
{
|
||||||
Alpha = string.IsNullOrEmpty(headerText) ? 0 : 1
|
Alpha = string.IsNullOrEmpty(headerText.ToString()) ? 0 : 1
|
||||||
},
|
},
|
||||||
CreateContent()
|
CreateContent()
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user