mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 20:43:21 +08:00
Improve supporter-only duration notice and fix max duration of non-supporter
See 3c54229256/.env.example (L230)
. Might have more duration options in the future.
This commit is contained in:
parent
30e0e00c52
commit
9d87ff2986
@ -10,9 +10,9 @@ namespace osu.Game.Localisation
|
||||
private const string prefix = @"osu.Game.Resources.Localisation.OnlinePlay";
|
||||
|
||||
/// <summary>
|
||||
/// "This duration is only available for osu!supporters."
|
||||
/// "Playlist durations longer than 2 weeks require an active osu!supporter tag."
|
||||
/// </summary>
|
||||
public static LocalisableString SupporterOnlyDurationNotice => new TranslatableString(getKey(@"supporter_only_duration_notice"), @"This duration is only available for osu!supporters.");
|
||||
public static LocalisableString SupporterOnlyDurationNotice => new TranslatableString(getKey(@"supporter_only_duration_notice"), @"Playlist durations longer than 2 weeks require an active osu!supporter tag.");
|
||||
|
||||
private static string getKey(string key) => $@"{prefix}:{key}";
|
||||
}
|
||||
|
@ -371,7 +371,7 @@ namespace osu.Game.Screens.OnlinePlay.Playlists
|
||||
private bool hasValidSettings => RoomID.Value == null && NameField.Text.Length > 0 && Playlist.Count > 0
|
||||
&& hasValidDuration;
|
||||
|
||||
private bool hasValidDuration => DurationField.Current.Value < TimeSpan.FromDays(31) || localUser.Value.IsSupporter;
|
||||
private bool hasValidDuration => DurationField.Current.Value <= TimeSpan.FromDays(14) || localUser.Value.IsSupporter;
|
||||
|
||||
private void apply()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user