mirror of
https://github.com/osukey/osukey.git
synced 2025-08-03 14:46:38 +09:00
Country
-> CountryCode
This commit is contained in:
@ -22,13 +22,13 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Rankings
|
||||
{
|
||||
public class CountryPill : CompositeDrawable, IHasCurrentValue<Country>
|
||||
public class CountryPill : CompositeDrawable, IHasCurrentValue<CountryCode>
|
||||
{
|
||||
private const int duration = 200;
|
||||
|
||||
private readonly BindableWithCurrent<Country> current = new BindableWithCurrent<Country>();
|
||||
private readonly BindableWithCurrent<CountryCode> current = new BindableWithCurrent<CountryCode>();
|
||||
|
||||
public Bindable<Country> Current
|
||||
public Bindable<CountryCode> Current
|
||||
{
|
||||
get => current.Current;
|
||||
set => current.Current = value;
|
||||
@ -131,12 +131,12 @@ namespace osu.Game.Overlays.Rankings
|
||||
this.FadeOut(duration, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private void onCountryChanged(ValueChangedEvent<Country> country)
|
||||
private void onCountryChanged(ValueChangedEvent<CountryCode> country)
|
||||
{
|
||||
if (country.NewValue == default)
|
||||
return;
|
||||
|
||||
flag.Country = country.NewValue;
|
||||
flag.CountryCode = country.NewValue;
|
||||
countryName.Text = country.NewValue.GetDescription();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user