mirror of
https://github.com/ppy/osu
synced 2025-01-06 06:10:04 +00:00
Rename KudosuValue to count and remove pointless local storage
This commit is contained in:
parent
6d9951d9af
commit
30db2ce18a
@ -64,8 +64,8 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
|||||||
|
|
||||||
this.user.ValueChanged += newUser =>
|
this.user.ValueChanged += newUser =>
|
||||||
{
|
{
|
||||||
total.KudosuValue = newUser?.Kudosu.Total ?? 0;
|
total.Count = newUser?.Kudosu.Total ?? 0;
|
||||||
avaliable.KudosuValue = newUser?.Kudosu.Available ?? 0;
|
avaliable.Count = newUser?.Kudosu.Available ?? 0;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -77,18 +77,9 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
|
|||||||
|
|
||||||
private readonly OsuSpriteText valueText;
|
private readonly OsuSpriteText valueText;
|
||||||
|
|
||||||
private int kudosuValue;
|
public int Count
|
||||||
public int KudosuValue
|
|
||||||
{
|
{
|
||||||
get { return kudosuValue; }
|
set { valueText.Text = value.ToString(); }
|
||||||
set
|
|
||||||
{
|
|
||||||
if (kudosuValue == value)
|
|
||||||
return;
|
|
||||||
kudosuValue = value;
|
|
||||||
|
|
||||||
valueText.Text = kudosuValue.ToString();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CountSection(string header, string description)
|
public CountSection(string header, string description)
|
||||||
|
Loading…
Reference in New Issue
Block a user