Rename `ModSelect{Overlay -> }Panel`

This commit is contained in:
Bartłomiej Dach 2022-07-22 19:14:39 +02:00
parent a3090003de
commit f3ceabc53f
No known key found for this signature in database
GPG Key ID: BCECCD4FA41F6497
5 changed files with 12 additions and 12 deletions

View File

@ -60,7 +60,7 @@ public DifficultyMultiplierDisplay()
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Masking = true,
CornerRadius = ModSelectOverlayPanel.CORNER_RADIUS,
CornerRadius = ModSelectPanel.CORNER_RADIUS,
Shear = new Vector2(ShearedOverlayContainer.SHEAR, 0),
Children = new Drawable[]
{
@ -69,7 +69,7 @@ public DifficultyMultiplierDisplay()
Anchor = Anchor.CentreRight,
Origin = Anchor.CentreRight,
RelativeSizeAxes = Axes.Y,
Width = multiplier_value_area_width + ModSelectOverlayPanel.CORNER_RADIUS
Width = multiplier_value_area_width + ModSelectPanel.CORNER_RADIUS
},
new GridContainer
{
@ -89,7 +89,7 @@ public DifficultyMultiplierDisplay()
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Masking = true,
CornerRadius = ModSelectOverlayPanel.CORNER_RADIUS,
CornerRadius = ModSelectPanel.CORNER_RADIUS,
Children = new Drawable[]
{
contentBackground = new Box

View File

@ -105,20 +105,20 @@ public ModColumn(ModType modType, bool allowIncompatibleSelection)
TopLevelContent = new Container
{
RelativeSizeAxes = Axes.Both,
CornerRadius = ModSelectOverlayPanel.CORNER_RADIUS,
CornerRadius = ModSelectPanel.CORNER_RADIUS,
Masking = true,
Children = new Drawable[]
{
new Container
{
RelativeSizeAxes = Axes.X,
Height = header_height + ModSelectOverlayPanel.CORNER_RADIUS,
Height = header_height + ModSelectPanel.CORNER_RADIUS,
Children = new Drawable[]
{
headerBackground = new Box
{
RelativeSizeAxes = Axes.X,
Height = header_height + ModSelectOverlayPanel.CORNER_RADIUS
Height = header_height + ModSelectPanel.CORNER_RADIUS
},
headerText = new OsuTextFlowContainer(t =>
{
@ -135,7 +135,7 @@ public ModColumn(ModType modType, bool allowIncompatibleSelection)
Padding = new MarginPadding
{
Horizontal = 17,
Bottom = ModSelectOverlayPanel.CORNER_RADIUS
Bottom = ModSelectPanel.CORNER_RADIUS
}
}
}
@ -148,7 +148,7 @@ public ModColumn(ModType modType, bool allowIncompatibleSelection)
{
RelativeSizeAxes = Axes.Both,
Masking = true,
CornerRadius = ModSelectOverlayPanel.CORNER_RADIUS,
CornerRadius = ModSelectPanel.CORNER_RADIUS,
BorderThickness = 3,
Children = new Drawable[]
{

View File

@ -11,7 +11,7 @@
namespace osu.Game.Overlays.Mods
{
public class ModPanel : ModSelectOverlayPanel
public class ModPanel : ModSelectPanel
{
public Mod Mod => modState.Mod;
public override BindableBool Active => modState.Active;

View File

@ -9,7 +9,7 @@
namespace osu.Game.Overlays.Mods
{
public class ModPresetPanel : ModSelectOverlayPanel, IHasCustomTooltip<ModPreset>
public class ModPresetPanel : ModSelectPanel, IHasCustomTooltip<ModPreset>
{
public readonly ModPreset Preset;

View File

@ -24,7 +24,7 @@
namespace osu.Game.Overlays.Mods
{
public abstract class ModSelectOverlayPanel : OsuClickableContainer, IHasAccentColour
public abstract class ModSelectPanel : OsuClickableContainer, IHasAccentColour
{
public abstract BindableBool Active { get; }
@ -70,7 +70,7 @@ public LocalisableString Description
private Sample? sampleOff;
private Sample? sampleOn;
protected ModSelectOverlayPanel()
protected ModSelectPanel()
{
RelativeSizeAxes = Axes.X;
Height = HEIGHT;