mirror of
https://github.com/ppy/osu.git
synced 2026-05-20 22:21:10 +08:00
Fix mod footer button with unranked badge not resizing on localisation changes (#33810)
- Closes https://github.com/ppy/osu/issues/33789
This commit is contained in:
committed by
GitHub
Unverified
parent
8de5726aa0
commit
0ba4e9e2a4
@@ -65,6 +65,11 @@ namespace osu.Game.Screens.SelectV2
|
||||
[Resolved]
|
||||
private OverlayColourProvider colourProvider { get; set; } = null!;
|
||||
|
||||
[Resolved]
|
||||
private OsuGameBase game { get; set; } = null!;
|
||||
|
||||
private IBindable<Language> currentLanguage = null!;
|
||||
|
||||
public FooterButtonMods(ModSelectOverlay overlay)
|
||||
: base(overlay)
|
||||
{
|
||||
@@ -156,6 +161,9 @@ namespace osu.Game.Screens.SelectV2
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
currentLanguage = game.CurrentLanguage.GetBoundCopy();
|
||||
currentLanguage.BindValueChanged(_ => ScheduleAfterChildren(updateDisplay));
|
||||
|
||||
Current.BindValueChanged(m =>
|
||||
{
|
||||
modSettingChangeTracker?.Dispose();
|
||||
|
||||
Reference in New Issue
Block a user