mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 10:43:04 +08:00
Fix now playing overlay text scroll breaking when toggling metadata language setting
This commit is contained in:
parent
eb92e8de37
commit
359238395f
@ -5,6 +5,7 @@ using System;
|
|||||||
using System.Threading;
|
using System.Threading;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Bindables;
|
using osu.Framework.Bindables;
|
||||||
|
using osu.Framework.Configuration;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
using osu.Framework.Extensions.ObjectExtensions;
|
using osu.Framework.Extensions.ObjectExtensions;
|
||||||
using osu.Framework.Graphics;
|
using osu.Framework.Graphics;
|
||||||
@ -479,6 +480,11 @@ namespace osu.Game.Overlays
|
|||||||
private OsuSpriteText mainSpriteText = null!;
|
private OsuSpriteText mainSpriteText = null!;
|
||||||
private OsuSpriteText fillerSpriteText = null!;
|
private OsuSpriteText fillerSpriteText = null!;
|
||||||
|
|
||||||
|
private Bindable<bool> showUnicode = null!;
|
||||||
|
|
||||||
|
[Resolved]
|
||||||
|
private FrameworkConfigManager frameworkConfig { get; set; } = null!;
|
||||||
|
|
||||||
private LocalisableString text;
|
private LocalisableString text;
|
||||||
|
|
||||||
public LocalisableString Text
|
public LocalisableString Text
|
||||||
@ -531,6 +537,9 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
|
showUnicode = frameworkConfig.GetBindable<bool>(FrameworkSetting.ShowUnicode);
|
||||||
|
showUnicode.BindValueChanged(_ => updateText());
|
||||||
|
|
||||||
updateFontAndText();
|
updateFontAndText();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user