github ppy/osu-framework 2021.830.0

latest releases: 2024.513.0, 2024.509.0, 2024.423.0...
2 years ago

Thanks for following along! This is a tagged release (2021.830.0).

Breaking Changes

ITooltip.SetContent no longer require returning bool value

Until now, the method of reusing tooltip instances was problematic (two tooltips handling the same data type could not exist). Instance sharing is now based on the constructed tooltip's Type, rather than the data type.

An example of how you should update your code follows.

Before:

public override bool SetContent(object content)
{
    if (!(content is CustomContent custom))
        return false;

    text.Text = content.ToString(); // whatever you need to do here.
    return true;
}

After:

public override void SetContent(object content)
{
    text.Text = content.ToString(); // whatever you need to do here.
}

Don't miss a new osu-framework release

NewReleases is sending notifications on new releases.