mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 09:42:57 +08:00
Rename LocalPlayer
to User
in mod select prefixes
This commit is contained in:
parent
fb5f3fb9af
commit
9e21f5a59c
@ -529,7 +529,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
||||
|
||||
AddStep("invoke on back button", () => multiplayerScreen.OnBackButton());
|
||||
|
||||
AddAssert("mod overlay is hidden", () => this.ChildrenOfType<LocalPlayerModSelectOverlay>().Single().State.Value == Visibility.Hidden);
|
||||
AddAssert("mod overlay is hidden", () => this.ChildrenOfType<UserModSelectOverlay>().Single().State.Value == Visibility.Hidden);
|
||||
|
||||
AddAssert("dialog overlay is hidden", () => DialogOverlay.State.Value == Visibility.Hidden);
|
||||
|
||||
|
@ -422,7 +422,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
};
|
||||
}
|
||||
|
||||
private class TestModSelectOverlay : LocalPlayerModSelectOverlay
|
||||
private class TestModSelectOverlay : UserModSelectOverlay
|
||||
{
|
||||
public new Bindable<IReadOnlyList<Mod>> SelectedMods => base.SelectedMods;
|
||||
|
||||
|
@ -151,7 +151,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddUntilStep("wait for ready", () => modSelect.State.Value == Visibility.Visible && modSelect.ButtonsLoaded);
|
||||
}
|
||||
|
||||
private class TestModSelectOverlay : LocalPlayerModSelectOverlay
|
||||
private class TestModSelectOverlay : UserModSelectOverlay
|
||||
{
|
||||
public new VisibilityContainer ModSettingsContainer => base.ModSettingsContainer;
|
||||
public new TriangleButton CustomiseButton => base.CustomiseButton;
|
||||
|
@ -65,9 +65,9 @@ namespace osu.Game.Overlays.Mods
|
||||
incompatibleIcon.Hide();
|
||||
}
|
||||
|
||||
public override ITooltip<Mod> GetCustomTooltip() => new LocalPlayerModButtonTooltip();
|
||||
public override ITooltip<Mod> GetCustomTooltip() => new IncompatibilityDisplayingTooltip();
|
||||
|
||||
private class LocalPlayerModButtonTooltip : ModButtonTooltip
|
||||
private class IncompatibilityDisplayingTooltip : ModButtonTooltip
|
||||
{
|
||||
private readonly OsuSpriteText incompatibleText;
|
||||
|
||||
@ -76,7 +76,7 @@ namespace osu.Game.Overlays.Mods
|
||||
[Resolved]
|
||||
private Bindable<RulesetInfo> ruleset { get; set; }
|
||||
|
||||
public LocalPlayerModButtonTooltip()
|
||||
public IncompatibilityDisplayingTooltip()
|
||||
{
|
||||
AddRange(new Drawable[]
|
||||
{
|
||||
|
@ -5,7 +5,7 @@ using osu.Game.Rulesets.Mods;
|
||||
|
||||
namespace osu.Game.Overlays.Mods
|
||||
{
|
||||
public class LocalPlayerModSelectOverlay : ModSelectOverlay
|
||||
public class UserModSelectOverlay : ModSelectOverlay
|
||||
{
|
||||
protected override void OnModSelected(Mod mod)
|
||||
{
|
||||
@ -15,11 +15,11 @@ namespace osu.Game.Overlays.Mods
|
||||
section.DeselectTypes(mod.IncompatibleMods, true, mod);
|
||||
}
|
||||
|
||||
protected override ModSection CreateModSection(ModType type) => new LocalPlayerModSection(type);
|
||||
protected override ModSection CreateModSection(ModType type) => new UserModSection(type);
|
||||
|
||||
private class LocalPlayerModSection : ModSection
|
||||
private class UserModSection : ModSection
|
||||
{
|
||||
public LocalPlayerModSection(ModType type)
|
||||
public UserModSection(ModType type)
|
||||
: base(type)
|
||||
{
|
||||
}
|
@ -429,10 +429,6 @@ namespace osu.Game.Screens.OnlinePlay.Match
|
||||
/// <param name="room">The room to change the settings of.</param>
|
||||
protected abstract RoomSettingsOverlay CreateRoomSettingsOverlay(Room room);
|
||||
|
||||
private class UserModSelectOverlay : LocalPlayerModSelectOverlay
|
||||
{
|
||||
}
|
||||
|
||||
public class UserModSelectButton : PurpleTriangleButton
|
||||
{
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ namespace osu.Game.Screens.OnlinePlay
|
||||
return base.OnExiting(next);
|
||||
}
|
||||
|
||||
protected override ModSelectOverlay CreateModSelectOverlay() => new LocalPlayerModSelectOverlay
|
||||
protected override ModSelectOverlay CreateModSelectOverlay() => new UserModSelectOverlay
|
||||
{
|
||||
IsValidMod = IsValidMod
|
||||
};
|
||||
|
@ -315,7 +315,7 @@ namespace osu.Game.Screens.Select
|
||||
(new FooterButtonOptions(), BeatmapOptions)
|
||||
};
|
||||
|
||||
protected virtual ModSelectOverlay CreateModSelectOverlay() => new LocalPlayerModSelectOverlay();
|
||||
protected virtual ModSelectOverlay CreateModSelectOverlay() => new UserModSelectOverlay();
|
||||
|
||||
protected virtual void ApplyFilterToCarousel(FilterCriteria criteria)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user