mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Hover for rank history.
This commit is contained in:
@ -23,6 +23,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public float? MinValue { get; set; }
|
||||
|
||||
public float? ActualMaxValue { get; private set; }
|
||||
public float? ActualMinValue { get; private set; }
|
||||
|
||||
private const double transform_duration = 500;
|
||||
|
||||
/// <summary>
|
||||
@ -40,6 +43,7 @@ namespace osu.Game.Graphics.UserInterface
|
||||
/// </summary>
|
||||
public IEnumerable<float> Values
|
||||
{
|
||||
get { return values; }
|
||||
set
|
||||
{
|
||||
values = value.ToArray();
|
||||
@ -77,6 +81,9 @@ namespace osu.Game.Graphics.UserInterface
|
||||
if (MaxValue > max) max = MaxValue.Value;
|
||||
if (MinValue < min) min = MinValue.Value;
|
||||
|
||||
ActualMaxValue = max;
|
||||
ActualMinValue = min;
|
||||
|
||||
for (int i = 0; i < values.Length; i++)
|
||||
{
|
||||
float x = (i + count - values.Length) / (float)(count - 1) * DrawWidth - 1;
|
||||
|
Reference in New Issue
Block a user