Skip to content

Commit

Permalink
Upgrade package to the latest and fix the compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Jun 25, 2024
1 parent ed21128 commit ec366b7
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence.
// See the LICENCE file in the repository root for full licence text.

using System;
using osu.Framework.Graphics;
using osu.Game.Graphics.UserInterfaceV2;
using osu.Game.Overlays.Settings;
using System.Numerics;

namespace osu.Game.Rulesets.Karaoke.Graphics.UserInterfaceV2;

public partial class LabelledRealTimeSliderBar<TNumber> : LabelledSliderBar<TNumber>
where TNumber : struct, IEquatable<TNumber>, IComparable<TNumber>, IConvertible
where TNumber : struct, INumber<TNumber>, IMinMaxValue<TNumber>
{
protected override SettingsSlider<TNumber> CreateComponent()
=> base.CreateComponent().With(x => x.TransferValueOnCommit = false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected override void OnFocus(FocusEvent e)
{
base.OnFocus(e);

GetContainingInputManager().ChangeFocus(filter);
GetContainingFocusManager().ChangeFocus(filter);
}

private bool enableEmptyOption;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ protected override void LoadComplete()
{
base.LoadComplete();

GetContainingInputManager().ChangeFocus(languageSelector);
GetContainingFocusManager().ChangeFocus(languageSelector);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ protected override void OnFocus(FocusEvent e)
{
base.OnFocus(e);

GetContainingInputManager().ChangeFocus(filter);
GetContainingFocusManager().ChangeFocus(filter);
}

private partial class LyricSelectionSearchTextBox : SearchTextBox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ void deleteRubyText()
protected override void LoadComplete()
{
base.LoadComplete();
ScheduleAfterChildren(() => GetContainingInputManager().ChangeFocus(labelledRubyTextBox));
ScheduleAfterChildren(() => GetContainingFocusManager().ChangeFocus(labelledRubyTextBox));
}

private partial class DeleteRubyButton : EditorSectionButton
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void addRubyText()
if (string.IsNullOrEmpty(rubyText))
{
labelledRubyTextBox.Description = "Please enter the ruby text";
GetContainingInputManager().ChangeFocus(labelledRubyTextBox);
GetContainingFocusManager().ChangeFocus(labelledRubyTextBox);
return;
}

Expand All @@ -208,7 +208,7 @@ private void addRubyText()
protected override void LoadComplete()
{
base.LoadComplete();
ScheduleAfterChildren(() => GetContainingInputManager().ChangeFocus(labelledRubyTextBox));
ScheduleAfterChildren(() => GetContainingFocusManager().ChangeFocus(labelledRubyTextBox));
}

private partial class CreateRubyLabelledTextBox : LabelledTextBox
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void FocusInputCaretTextBox()
Schedule(() =>
{
inputCaretTextBox.Text = string.Empty;
GetContainingInputManager().ChangeFocus(inputCaretTextBox);
GetContainingFocusManager().ChangeFocus(inputCaretTextBox);
});
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public NoteSection(Note note)

ScheduleAfterChildren(() =>
{
GetContainingInputManager().ChangeFocus(text);
GetContainingFocusManager().ChangeFocus(text);
});

text.OnCommit += (sender, newText) =>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void focus()
if (IsFocused(focusedDrawable))
return;

GetContainingInputManager().ChangeFocus(Component);
GetContainingFocusManager().ChangeFocus(Component);
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected override void LoadComplete()
{
base.LoadComplete();

GetContainingInputManager().ChangeFocus(lyricSelector);
GetContainingFocusManager().ChangeFocus(lyricSelector);
}
}

Expand Down
2 changes: 1 addition & 1 deletion osu.Game.Rulesets.Karaoke/osu.Game.Rulesets.Karaoke.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="ppy.osu.Game" Version="2024.521.2" />
<PackageReference Include="ppy.osu.Game" Version="2024.523.0" />
<PackageReference Include="Lucene.Net" Version="4.8.0-beta00016" />
<PackageReference Include="Lucene.Net.Analysis.Kuromoji" Version="4.8.0-beta00016" />
<PackageReference Include="SixLabors.Fonts" Version="2.0.3" />
Expand Down

0 comments on commit ec366b7

Please sign in to comment.