diff --git a/.editorconfig b/.editorconfig
index 759217430d..0dd7ef8ed1 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -7,3 +7,21 @@ insert_final_newline = true
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
+
+#Roslyn naming styles
+
+#PascalCase for public and protected members
+dotnet_naming_style.pascalcase.capitalization = pascal_case
+dotnet_naming_symbols.public_members.applicable_accessibilities = public,internal,protected,protected_internal
+dotnet_naming_symbols.public_members.applicable_kinds = property,method,field,event,delegate
+dotnet_naming_rule.public_members_pascalcase.severity = suggestion
+dotnet_naming_rule.public_members_pascalcase.symbols = public_members
+dotnet_naming_rule.public_members_pascalcase.style = pascalcase
+
+#camelCase for private members
+dotnet_naming_style.camelcase.capitalization = camel_case
+dotnet_naming_symbols.private_members.applicable_accessibilities = private
+dotnet_naming_symbols.private_members.applicable_kinds = property,method,field,event,delegate
+dotnet_naming_rule.private_members_camelcase.severity = suggestion
+dotnet_naming_rule.private_members_camelcase.symbols = private_members
+dotnet_naming_rule.private_members_camelcase.style = camelcase
\ No newline at end of file
diff --git a/osu-framework b/osu-framework
index b061324151..0b11b8b1ed 160000
--- a/osu-framework
+++ b/osu-framework
@@ -1 +1 @@
-Subproject commit b0613241512e46eed9dc16ae08ed4064d2db4101
+Subproject commit 0b11b8b1ed740ab74371cf178b5d956ac7bc1547
diff --git a/osu.Desktop.Tests/osu.Desktop.Tests.csproj b/osu.Desktop.Tests/osu.Desktop.Tests.csproj
index 9037acb220..07495311e0 100644
--- a/osu.Desktop.Tests/osu.Desktop.Tests.csproj
+++ b/osu.Desktop.Tests/osu.Desktop.Tests.csproj
@@ -54,9 +54,6 @@
$(SolutionDir)\packages\SQLite.Net-PCL.3.1.1\lib\net40\SQLite.Net.Platform.Generic.dll
-
- $(SolutionDir)\packages\ppy.OpenTK.2.0.50727.1339\lib\net45\OpenTK.dll
-
diff --git a/osu.Desktop.VisualTests/Benchmark.cs b/osu.Desktop.VisualTests/Benchmark.cs
index 8c8cffaf3f..3847b6f00f 100644
--- a/osu.Desktop.VisualTests/Benchmark.cs
+++ b/osu.Desktop.VisualTests/Benchmark.cs
@@ -13,7 +13,7 @@ namespace osu.Desktop.VisualTests
private double timePerTest = 200;
[BackgroundDependencyLoader]
- private void load(Framework.Game game)
+ private void load()
{
Host.MaximumDrawHz = int.MaxValue;
Host.MaximumUpdateHz = int.MaxValue;
diff --git a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs
index f77025cb06..556d4eceea 100644
--- a/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs
+++ b/osu.Desktop.VisualTests/Tests/TestCaseHitObjects.cs
@@ -95,7 +95,7 @@ namespace osu.Desktop.VisualTests.Tests
AddButton(@"slider", () => load(HitObjectType.Slider));
AddButton(@"spinner", () => load(HitObjectType.Spinner));
- AddToggle(@"auto", () => { auto = !auto; load(mode); });
+ AddToggle(@"auto", (state) => { auto = state; load(mode); });
ButtonsContainer.Add(new SpriteText { Text = "Playback Speed" });
ButtonsContainer.Add(new BasicSliderBar
diff --git a/osu.Desktop.VisualTests/Tests/TestCaseMusicController.cs b/osu.Desktop.VisualTests/Tests/TestCaseMusicController.cs
index 1a811a8588..8d9213ee13 100644
--- a/osu.Desktop.VisualTests/Tests/TestCaseMusicController.cs
+++ b/osu.Desktop.VisualTests/Tests/TestCaseMusicController.cs
@@ -5,6 +5,7 @@ using osu.Framework.Screens.Testing;
using osu.Framework.Graphics;
using osu.Framework.Timing;
using osu.Game.Overlays;
+using osu.Framework.Graphics.Containers;
namespace osu.Desktop.VisualTests.Tests
{
@@ -30,7 +31,7 @@ namespace osu.Desktop.VisualTests.Tests
Anchor = Anchor.Centre
};
Add(mc);
- AddToggle(@"Show", mc.ToggleVisibility);
+ AddToggle(@"Show", (state) => mc.State = state ? Visibility.Visible : Visibility.Hidden);
}
}
}
diff --git a/osu.Desktop.VisualTests/Tests/TestCaseNotificationManager.cs b/osu.Desktop.VisualTests/Tests/TestCaseNotificationManager.cs
index 78174a8f64..adf222d95d 100644
--- a/osu.Desktop.VisualTests/Tests/TestCaseNotificationManager.cs
+++ b/osu.Desktop.VisualTests/Tests/TestCaseNotificationManager.cs
@@ -8,6 +8,7 @@ using osu.Framework.MathUtils;
using osu.Game.Overlays;
using System.Linq;
using osu.Game.Overlays.Notifications;
+using osu.Framework.Graphics.Containers;
namespace osu.Desktop.VisualTests.Tests
{
@@ -30,7 +31,7 @@ namespace osu.Desktop.VisualTests.Tests
Origin = Anchor.TopRight,
});
- AddToggle(@"show", manager.ToggleVisibility);
+ AddToggle(@"show", (state) => manager.State = state ? Visibility.Visible : Visibility.Hidden);
AddButton(@"simple #1", sendNotification1);
AddButton(@"simple #2", sendNotification2);
diff --git a/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs b/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs
index 7502c623fe..ce3650fe61 100644
--- a/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs
+++ b/osu.Desktop.VisualTests/Tests/TestCaseTextAwesome.cs
@@ -22,9 +22,9 @@ namespace osu.Desktop.VisualTests.Tests
{
base.Reset();
- FlowContainer flow;
+ FillFlowContainer flow;
- Add(flow = new FlowContainer()
+ Add(flow = new FillFlowContainer()
{
RelativeSizeAxes = Axes.Both,
Size = new Vector2(0.5f),
diff --git a/osu.Desktop/Overlays/VersionManager.cs b/osu.Desktop/Overlays/VersionManager.cs
index bdc8bc7e1a..aff8bb0d7b 100644
--- a/osu.Desktop/Overlays/VersionManager.cs
+++ b/osu.Desktop/Overlays/VersionManager.cs
@@ -37,7 +37,7 @@ namespace osu.Desktop.Overlays
[BackgroundDependencyLoader]
private void load(NotificationManager notification, OsuColour colours, TextureStore textures)
{
- this.notificationManager = notification;
+ notificationManager = notification;
AutoSizeAxes = Axes.Both;
Anchor = Anchor.BottomCentre;
@@ -57,19 +57,19 @@ namespace osu.Desktop.Overlays
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
+ Spacing = new Vector2(5),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
- Spacing = new Vector2(5),
Children = new Drawable[]
{
new OsuSpriteText
@@ -95,6 +95,8 @@ namespace osu.Desktop.Overlays
},
new Sprite
{
+ Anchor = Anchor.TopCentre,
+ Origin = Anchor.TopCentre,
Texture = textures.Get(@"Menu/dev-build-footer"),
},
}
diff --git a/osu.Game.Modes.Osu/Objects/Drawables/HitExplosion.cs b/osu.Game.Modes.Osu/Objects/Drawables/HitExplosion.cs
index 8f53041017..95bc0954de 100644
--- a/osu.Game.Modes.Osu/Objects/Drawables/HitExplosion.cs
+++ b/osu.Game.Modes.Osu/Objects/Drawables/HitExplosion.cs
@@ -13,7 +13,7 @@ using OpenTK.Graphics;
namespace osu.Game.Modes.Osu.Objects.Drawables
{
- public class HitExplosion : FlowContainer
+ public class HitExplosion : FillFlowContainer
{
private readonly OsuJudgementInfo judgement;
private SpriteText line1;
@@ -25,7 +25,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables
AutoSizeAxes = Axes.Both;
Origin = Anchor.Centre;
- Direction = FlowDirections.Vertical;
+ Direction = FillDirection.Down;
Spacing = new Vector2(0, 2);
Position = (h?.StackedEndPosition ?? Vector2.Zero) + judgement.PositionOffset;
diff --git a/osu.Game.Modes.Osu/Objects/Drawables/Pieces/TrianglesPiece.cs b/osu.Game.Modes.Osu/Objects/Drawables/Pieces/TrianglesPiece.cs
index 33ed93e625..26d44f3865 100644
--- a/osu.Game.Modes.Osu/Objects/Drawables/Pieces/TrianglesPiece.cs
+++ b/osu.Game.Modes.Osu/Objects/Drawables/Pieces/TrianglesPiece.cs
@@ -14,6 +14,7 @@ namespace osu.Game.Modes.Osu.Objects.Drawables.Pieces
public TrianglesPiece()
{
TriangleScale = 1.2f;
+ HideAlphaDiscrepancies = false;
}
protected override void Update()
diff --git a/osu.Game/Beatmaps/Drawables/BeatmapBackgroundSprite.cs b/osu.Game/Beatmaps/Drawables/BeatmapBackgroundSprite.cs
index 39f45273a9..5af2e7c197 100644
--- a/osu.Game/Beatmaps/Drawables/BeatmapBackgroundSprite.cs
+++ b/osu.Game/Beatmaps/Drawables/BeatmapBackgroundSprite.cs
@@ -16,7 +16,7 @@ namespace osu.Game.Beatmaps.Drawables
}
[BackgroundDependencyLoader]
- private void load(OsuGameBase game)
+ private void load()
{
if (working.Background != null)
Texture = working.Background;
diff --git a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs
index bcdb1c0b5d..9c1f1a02fc 100644
--- a/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs
+++ b/osu.Game/Beatmaps/Drawables/BeatmapGroup.cs
@@ -64,7 +64,7 @@ namespace osu.Game.Beatmaps.Drawables
BeatmapSet = beatmapSet;
WorkingBeatmap beatmap = database.GetWorkingBeatmap(BeatmapSet.Beatmaps.FirstOrDefault());
foreach (var b in BeatmapSet.Beatmaps)
- b.StarDifficulty = (float)(database.GetWorkingBeatmap(b).Beatmap?.CalculateStarDifficulty() ?? 0);
+ b.StarDifficulty = (float)(database.GetWorkingBeatmap(b).Beatmap?.CalculateStarDifficulty() ?? -1f);
Header = new BeatmapSetHeader(beatmap)
{
diff --git a/osu.Game/Beatmaps/Drawables/BeatmapPanel.cs b/osu.Game/Beatmaps/Drawables/BeatmapPanel.cs
index 214712af72..1db339a5b6 100644
--- a/osu.Game/Beatmaps/Drawables/BeatmapPanel.cs
+++ b/osu.Game/Beatmaps/Drawables/BeatmapPanel.cs
@@ -83,10 +83,10 @@ namespace osu.Game.Beatmaps.Drawables
ColourLight = OsuColour.FromHex(@"3a7285"),
ColourDark = OsuColour.FromHex(@"123744")
},
- new FlowContainer
+ new FillFlowContainer
{
Padding = new MarginPadding(5),
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
AutoSizeAxes = Axes.Both,
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
@@ -98,18 +98,18 @@ namespace osu.Game.Beatmaps.Drawables
Anchor = Anchor.CentreLeft,
Origin = Anchor.CentreLeft,
},
- new FlowContainer
+ new FillFlowContainer
{
Padding = new MarginPadding { Left = 5 },
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
AutoSizeAxes = Axes.Both,
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
- Direction = FlowDirections.Horizontal,
- AutoSizeAxes = Axes.Both,
+ Direction = FillDirection.Right,
Spacing = new Vector2(4, 0),
+ AutoSizeAxes = Axes.Both,
Children = new[]
{
new OsuSpriteText
diff --git a/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs b/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs
index 8681259272..36cbebf8de 100644
--- a/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs
+++ b/osu.Game/Beatmaps/Drawables/BeatmapSetHeader.cs
@@ -24,7 +24,7 @@ namespace osu.Game.Beatmaps.Drawables
private OsuConfigManager config;
private Bindable preferUnicode;
private WorkingBeatmap beatmap;
- private FlowContainer difficultyIcons;
+ private FillFlowContainer difficultyIcons;
public BeatmapSetHeader(WorkingBeatmap beatmap)
{
@@ -36,9 +36,9 @@ namespace osu.Game.Beatmaps.Drawables
{
RelativeSizeAxes = Axes.Both,
},
- new FlowContainer
+ new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Padding = new MarginPadding { Top = 5, Left = 18, Right = 10, Bottom = 10 },
AutoSizeAxes = Axes.Both,
Children = new[]
@@ -58,7 +58,7 @@ namespace osu.Game.Beatmaps.Drawables
TextSize = 17,
Shadow = true,
},
- difficultyIcons = new FlowContainer
+ difficultyIcons = new FillFlowContainer
{
Margin = new MarginPadding { Top = 5 },
AutoSizeAxes = Axes.Both,
@@ -109,10 +109,10 @@ namespace osu.Game.Beatmaps.Drawables
Children = new[]
{
- new FlowContainer
+ new FillFlowContainer
{
Depth = -1,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
RelativeSizeAxes = Axes.Both,
// This makes the gradient not be perfectly horizontal, but diagonal at a ~40° angle
Shear = new Vector2(0.8f, 0),
diff --git a/osu.Game/Configuration/OsuConfigManager.cs b/osu.Game/Configuration/OsuConfigManager.cs
index ccf53ed714..70bfbb5992 100644
--- a/osu.Game/Configuration/OsuConfigManager.cs
+++ b/osu.Game/Configuration/OsuConfigManager.cs
@@ -27,11 +27,14 @@ namespace osu.Game.Configuration
Set(OsuConfig.DimLevel, 30, 0, 100);
Set(OsuConfig.MouseDisableButtons, false);
+ Set(OsuConfig.MouseDisableWheel, false);
Set(OsuConfig.SnakingInSliders, true);
Set(OsuConfig.SnakingOutSliders, false);
Set(OsuConfig.MenuParallax, true);
+
+ Set(OsuConfig.KeyOverlay, false);
//todo: implement all settings below this line (remove the Disabled set when doing so).
Set(OsuConfig.MouseSpeed, 1.0).Disabled = true;
@@ -79,7 +82,6 @@ namespace osu.Game.Configuration
Set(OsuConfig.IgnoreBeatmapSamples, false).Disabled = true;
Set(OsuConfig.IgnoreBeatmapSkins, false).Disabled = true;
Set(OsuConfig.IgnoreList, string.Empty).Disabled = true;
- Set(OsuConfig.KeyOverlay, false).Disabled = true;
Set(OsuConfig.Language, @"unknown").Disabled = true;
Set(OsuConfig.AllowNowPlayingHighlights, false).Disabled = true;
Set(OsuConfig.LastVersion, string.Empty).Disabled = true;
@@ -99,7 +101,6 @@ namespace osu.Game.Configuration
Set(OsuConfig.UsePerBeatmapManiaSpeed, true).Disabled = true;
Set(OsuConfig.ManiaSpeedBPMScale, true).Disabled = true;
Set(OsuConfig.MenuTip, 0).Disabled = true;
- Set(OsuConfig.MouseDisableWheel, false).Disabled = true;
Set(OsuConfig.MouseSpeed, 1, 0.4, 6).Disabled = true;
Set(OsuConfig.Offset, 0, -300, 300).Disabled = true;
Set(OsuConfig.ScoreMeterScale, 1, 0.5, 2).Disabled = true;
diff --git a/osu.Game/Database/BeatmapDatabase.cs b/osu.Game/Database/BeatmapDatabase.cs
index ff58031c57..fc2c7558b0 100644
--- a/osu.Game/Database/BeatmapDatabase.cs
+++ b/osu.Game/Database/BeatmapDatabase.cs
@@ -57,6 +57,18 @@ namespace osu.Game.Database
try
{
storage.Delete(b.Path);
+
+ GetChildren(b, true);
+
+ foreach (var i in b.Beatmaps)
+ {
+ if (i.Metadata != null) connection.Delete(i.Metadata);
+ if (i.BaseDifficulty != null) connection.Delete(i.BaseDifficulty);
+
+ connection.Delete(i);
+ }
+
+ if (b.Metadata != null) connection.Delete(b.Metadata);
connection.Delete(b);
}
catch (Exception e)
diff --git a/osu.Game/Graphics/Backgrounds/Triangles.cs b/osu.Game/Graphics/Backgrounds/Triangles.cs
index 219af9bd38..f3b75ce91a 100644
--- a/osu.Game/Graphics/Backgrounds/Triangles.cs
+++ b/osu.Game/Graphics/Backgrounds/Triangles.cs
@@ -10,6 +10,7 @@ using osu.Framework.MathUtils;
using OpenTK;
using OpenTK.Graphics;
using System;
+using osu.Framework.Graphics.Colour;
namespace osu.Game.Graphics.Backgrounds
{
@@ -37,6 +38,13 @@ namespace osu.Game.Graphics.Backgrounds
private float triangleScale = 1;
+ ///
+ /// Whether we should drop-off alpha values of triangles more quickly to improve
+ /// the visual appearance of fading. This defaults to on as it is generally more
+ /// aesthetically pleasing, but should be turned off in s.
+ ///
+ public bool HideAlphaDiscrepancies = true;
+
public float TriangleScale
{
get { return triangleScale; }
@@ -63,8 +71,14 @@ namespace osu.Game.Graphics.Backgrounds
{
base.Update();
+ float adjustedAlpha = HideAlphaDiscrepancies ?
+ // Cubically scale alpha to make it drop off more sharply.
+ (float)Math.Pow(DrawInfo.Colour.AverageColour.Linear.A, 3) :
+ 1;
+
foreach (var t in Children)
{
+ t.Alpha = adjustedAlpha;
t.Position -= new Vector2(0, (float)(t.Scale.X * (50 / DrawHeight) * (Time.Elapsed / 950)) / triangleScale);
if (ExpireOffScreenTriangles && t.DrawPosition.Y + t.DrawSize.Y * t.Scale.Y < 0)
t.Expire();
diff --git a/osu.Game/Graphics/Cursor/OsuCursorContainer.cs b/osu.Game/Graphics/Cursor/OsuCursorContainer.cs
index b8784cef6d..ab681845af 100644
--- a/osu.Game/Graphics/Cursor/OsuCursorContainer.cs
+++ b/osu.Game/Graphics/Cursor/OsuCursorContainer.cs
@@ -52,7 +52,7 @@ namespace osu.Game.Graphics.Cursor
}
[BackgroundDependencyLoader]
- private void load(TextureStore textures, OsuConfigManager config)
+ private void load(OsuConfigManager config)
{
cursorScale = config.GetBindable(OsuConfig.CursorSize);
diff --git a/osu.Game/Graphics/UserInterface/OsuDropDownMenuItem.cs b/osu.Game/Graphics/UserInterface/OsuDropDownMenuItem.cs
index c2eb1fbc69..d654299279 100644
--- a/osu.Game/Graphics/UserInterface/OsuDropDownMenuItem.cs
+++ b/osu.Game/Graphics/UserInterface/OsuDropDownMenuItem.cs
@@ -19,9 +19,9 @@ namespace osu.Game.Graphics.UserInterface
Children = new[]
{
- new FlowContainer
+ new FillFlowContainer
{
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Children = new Drawable[]
diff --git a/osu.Game/Graphics/UserInterface/StarCounter.cs b/osu.Game/Graphics/UserInterface/StarCounter.cs
index d2ca2e72f7..10ffcffa7f 100644
--- a/osu.Game/Graphics/UserInterface/StarCounter.cs
+++ b/osu.Game/Graphics/UserInterface/StarCounter.cs
@@ -14,8 +14,6 @@ namespace osu.Game.Graphics.UserInterface
{
private readonly Container stars;
- private double transformStartTime;
-
///
/// Maximum amount of stars displayed.
///
@@ -70,10 +68,10 @@ namespace osu.Game.Graphics.UserInterface
Children = new Drawable[]
{
- stars = new FlowContainer
+ stars = new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Spacing = new Vector2(star_spacing),
}
};
diff --git a/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs b/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs
index 07a8017294..04ba2fcd2f 100644
--- a/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs
+++ b/osu.Game/Graphics/UserInterface/Volume/VolumeControl.cs
@@ -33,7 +33,7 @@ namespace osu.Game.Graphics.UserInterface.Volume
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Anchor = Anchor.BottomRight,
diff --git a/osu.Game/Modes/UI/ScoreOverlay.cs b/osu.Game/Modes/UI/ScoreOverlay.cs
index e43009adda..d9283c52cb 100644
--- a/osu.Game/Modes/UI/ScoreOverlay.cs
+++ b/osu.Game/Modes/UI/ScoreOverlay.cs
@@ -9,6 +9,9 @@ using osu.Game.Modes.Objects;
using OpenTK;
using osu.Framework.Graphics.Primitives;
using osu.Game.Screens.Play;
+using osu.Framework.Allocation;
+using osu.Game.Configuration;
+using osu.Framework.Configuration;
namespace osu.Game.Modes.UI
{
@@ -21,6 +24,8 @@ namespace osu.Game.Modes.UI
public HealthDisplay HealthDisplay;
public Score Score { get; set; }
+ private Bindable showKeyCounter;
+
protected abstract KeyCounterCollection CreateKeyCounter();
protected abstract ComboCounter CreateComboCounter();
protected abstract PercentageCounter CreateAccuracyCounter();
@@ -58,6 +63,22 @@ namespace osu.Game.Modes.UI
};
}
+ [BackgroundDependencyLoader]
+ private void load(OsuConfigManager config)
+ {
+ showKeyCounter = config.GetBindable(OsuConfig.KeyOverlay);
+ showKeyCounter.ValueChanged += visibilityChanged;
+ showKeyCounter.TriggerChange();
+ }
+
+ private void visibilityChanged(object sender, EventArgs e)
+ {
+ if (showKeyCounter)
+ KeyCounter.Show();
+ else
+ KeyCounter.Hide();
+ }
+
public void BindProcessor(ScoreProcessor processor)
{
//bind processor bindables to combocounter, score display etc.
diff --git a/osu.Game/Online/Chat/Drawables/DrawableChannel.cs b/osu.Game/Online/Chat/Drawables/DrawableChannel.cs
index 84d15967e4..b8eb1e466a 100644
--- a/osu.Game/Online/Chat/Drawables/DrawableChannel.cs
+++ b/osu.Game/Online/Chat/Drawables/DrawableChannel.cs
@@ -15,7 +15,7 @@ namespace osu.Game.Online.Chat.Drawables
public class DrawableChannel : Container
{
private readonly Channel channel;
- private FlowContainer flow;
+ private FillFlowContainer flow;
private ScrollContainer scroll;
public DrawableChannel(Channel channel)
@@ -39,9 +39,9 @@ namespace osu.Game.Online.Chat.Drawables
RelativeSizeAxes = Axes.Both,
Children = new Drawable[]
{
- flow = new FlowContainer
+ flow = new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
Padding = new MarginPadding { Left = 20, Right = 20 }
diff --git a/osu.Game/OsuGame.cs b/osu.Game/OsuGame.cs
index 1cf48c9de1..9f7e3e04dc 100644
--- a/osu.Game/OsuGame.cs
+++ b/osu.Game/OsuGame.cs
@@ -222,7 +222,7 @@ namespace osu.Game
}
}
- return base.OnKeyDown(state, args);
+ return false;
}
public event Action ModeChanged;
diff --git a/osu.Game/Overlays/ChatOverlay.cs b/osu.Game/Overlays/ChatOverlay.cs
index c3138cb571..ab5a255897 100644
--- a/osu.Game/Overlays/ChatOverlay.cs
+++ b/osu.Game/Overlays/ChatOverlay.cs
@@ -29,8 +29,6 @@ namespace osu.Game.Overlays
{
const float textbox_height = 40;
- private DrawableChannel channelDisplay;
-
private ScheduledDelegate messageRequest;
private Container content;
@@ -126,7 +124,7 @@ namespace osu.Game.Overlays
private void addChannel(Channel channel)
{
- Add(channelDisplay = new DrawableChannel(channel));
+ Add(new DrawableChannel(channel));
careChannels.Add(channel);
}
diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs
index 661cbe06a4..430654b8f5 100644
--- a/osu.Game/Overlays/MusicController.cs
+++ b/osu.Game/Overlays/MusicController.cs
@@ -75,8 +75,7 @@ namespace osu.Game.Overlays
}
[BackgroundDependencyLoader]
- private void load(OsuGameBase osuGame, OsuConfigManager config, BeatmapDatabase beatmaps, AudioManager audio,
- TextureStore textures, OsuColour colours)
+ private void load(OsuGameBase osuGame, OsuConfigManager config, BeatmapDatabase beatmaps, OsuColour colours)
{
game = osuGame;
diff --git a/osu.Game/Overlays/NotificationManager.cs b/osu.Game/Overlays/NotificationManager.cs
index 7172559a94..5c666da8ae 100644
--- a/osu.Game/Overlays/NotificationManager.cs
+++ b/osu.Game/Overlays/NotificationManager.cs
@@ -25,7 +25,7 @@ namespace osu.Game.Overlays
private FlowContainer sections;
[BackgroundDependencyLoader(permitNulls: true)]
- private void load(OsuColour colours)
+ private void load()
{
Width = width;
RelativeSizeAxes = Axes.Y;
@@ -44,9 +44,9 @@ namespace osu.Game.Overlays
Margin = new MarginPadding { Top = Toolbar.Toolbar.HEIGHT },
Children = new[]
{
- sections = new FlowContainer
+ sections = new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
Children = new []
diff --git a/osu.Game/Overlays/Notifications/Notification.cs b/osu.Game/Overlays/Notifications/Notification.cs
index e3a1e55868..179e9bf066 100644
--- a/osu.Game/Overlays/Notifications/Notification.cs
+++ b/osu.Game/Overlays/Notifications/Notification.cs
@@ -256,7 +256,7 @@ namespace osu.Game.Overlays.Notifications
}
[BackgroundDependencyLoader]
- private void load(OsuColour colours)
+ private void load()
{
Size = new Vector2(6, 15);
diff --git a/osu.Game/Overlays/Notifications/NotificationSection.cs b/osu.Game/Overlays/Notifications/NotificationSection.cs
index e5a597e387..91c89d41be 100644
--- a/osu.Game/Overlays/Notifications/NotificationSection.cs
+++ b/osu.Game/Overlays/Notifications/NotificationSection.cs
@@ -16,7 +16,7 @@ using OpenTK;
namespace osu.Game.Overlays.Notifications
{
- public class NotificationSection : FlowContainer
+ public class NotificationSection : FillFlowContainer
{
private OsuSpriteText titleText;
private OsuSpriteText countText;
@@ -60,7 +60,7 @@ namespace osu.Game.Overlays.Notifications
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
- Direction = FlowDirections.Vertical;
+ Direction = FillDirection.Down;
Padding = new MarginPadding
{
@@ -85,7 +85,7 @@ namespace osu.Game.Overlays.Notifications
Origin = Anchor.TopRight,
Action = clearAll
},
- new FlowContainer
+ new FillFlowContainer
{
Margin = new MarginPadding
{
@@ -110,7 +110,7 @@ namespace osu.Game.Overlays.Notifications
},
},
},
- notifications = new FlowContainer
+ notifications = new FillFlowContainer
{
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
diff --git a/osu.Game/Overlays/Options/OptionDropDown.cs b/osu.Game/Overlays/Options/OptionDropDown.cs
index 2f88ab34ae..7e2cab2a61 100644
--- a/osu.Game/Overlays/Options/OptionDropDown.cs
+++ b/osu.Game/Overlays/Options/OptionDropDown.cs
@@ -14,7 +14,7 @@ using System.Collections.Generic;
namespace osu.Game.Overlays.Options
{
- public class OptionDropDown : FlowContainer
+ public class OptionDropDown : FillFlowContainer
{
private DropDownMenu dropdown;
private SpriteText text;
@@ -89,7 +89,7 @@ namespace osu.Game.Overlays.Options
{
Items = new KeyValuePair[0];
- Direction = FlowDirections.Vertical;
+ Direction = FillDirection.Down;
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Children = new Drawable[]
@@ -101,7 +101,7 @@ namespace osu.Game.Overlays.Options
{
Margin = new MarginPadding { Top = 5 },
RelativeSizeAxes = Axes.X,
- Items = this.Items,
+ Items = Items,
}
};
dropdown.ValueChanged += dropdown_ValueChanged;
diff --git a/osu.Game/Overlays/Options/OptionSlider.cs b/osu.Game/Overlays/Options/OptionSlider.cs
index 0e5d9f915c..2f09c51655 100644
--- a/osu.Game/Overlays/Options/OptionSlider.cs
+++ b/osu.Game/Overlays/Options/OptionSlider.cs
@@ -12,7 +12,7 @@ using osu.Game.Graphics.UserInterface;
namespace osu.Game.Overlays.Options
{
- public class OptionSlider : FlowContainer where T : struct
+ public class OptionSlider : FillFlowContainer where T : struct
{
private SliderBar slider;
private SpriteText text;
@@ -40,7 +40,6 @@ namespace osu.Game.Overlays.Options
public OptionSlider()
{
- Direction = FlowDirections.Vertical;
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
Padding = new MarginPadding { Right = 5 };
diff --git a/osu.Game/Overlays/Options/OptionTextBox.cs b/osu.Game/Overlays/Options/OptionTextBox.cs
index 813d372db6..47c81e6a7e 100644
--- a/osu.Game/Overlays/Options/OptionTextBox.cs
+++ b/osu.Game/Overlays/Options/OptionTextBox.cs
@@ -21,7 +21,7 @@ namespace osu.Game.Overlays.Options
bindable = value;
if (bindable != null)
{
- base.Text = bindable.Value;
+ Text = bindable.Value;
bindable.ValueChanged += bindableValueChanged;
}
diff --git a/osu.Game/Overlays/Options/OptionsSection.cs b/osu.Game/Overlays/Options/OptionsSection.cs
index 61cfa868ec..f87e69e307 100644
--- a/osu.Game/Overlays/Options/OptionsSection.cs
+++ b/osu.Game/Overlays/Options/OptionsSection.cs
@@ -15,7 +15,7 @@ namespace osu.Game.Overlays.Options
{
public abstract class OptionsSection : Container
{
- protected FlowContainer FlowContent;
+ protected FillFlowContainer FlowContent;
protected override Container Content => FlowContent;
public abstract FontAwesome Icon { get; }
@@ -58,10 +58,10 @@ namespace osu.Game.Overlays.Options
TextSize = header_size,
Text = Header,
},
- FlowContent = new FlowContainer
+ FlowContent = new FillFlowContainer
{
Margin = new MarginPadding { Top = header_size + header_margin },
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Spacing = new Vector2(0, 30),
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
diff --git a/osu.Game/Overlays/Options/OptionsSubsection.cs b/osu.Game/Overlays/Options/OptionsSubsection.cs
index 4d8be559a7..ef10e15abf 100644
--- a/osu.Game/Overlays/Options/OptionsSubsection.cs
+++ b/osu.Game/Overlays/Options/OptionsSubsection.cs
@@ -9,7 +9,7 @@ using osu.Game.Graphics.Sprites;
namespace osu.Game.Overlays.Options
{
- public abstract class OptionsSubsection : FlowContainer
+ public abstract class OptionsSubsection : FillFlowContainer
{
private Container content;
protected override Container Content => content;
@@ -20,7 +20,7 @@ namespace osu.Game.Overlays.Options
{
RelativeSizeAxes = Axes.X;
AutoSizeAxes = Axes.Y;
- Direction = FlowDirections.Vertical;
+ Direction = FillDirection.Down;
AddInternal(new Drawable[]
{
new OsuSpriteText
@@ -29,12 +29,12 @@ namespace osu.Game.Overlays.Options
Margin = new MarginPadding { Bottom = 10 },
Font = @"Exo2.0-Black",
},
- content = new FlowContainer
+ content = new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
+ Spacing = new Vector2(0, 5),
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
- Spacing = new Vector2(0, 5),
},
});
}
diff --git a/osu.Game/Overlays/Options/Sections/EditorSection.cs b/osu.Game/Overlays/Options/Sections/EditorSection.cs
index 513d89c601..11d3f6b642 100644
--- a/osu.Game/Overlays/Options/Sections/EditorSection.cs
+++ b/osu.Game/Overlays/Options/Sections/EditorSection.cs
@@ -7,6 +7,7 @@ using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using OpenTK;
+using osu.Framework.Graphics.Containers;
namespace osu.Game.Overlays.Options.Sections
{
diff --git a/osu.Game/Overlays/Options/Sections/GameplaySection.cs b/osu.Game/Overlays/Options/Sections/GameplaySection.cs
index 87de1fd249..85a180ccbc 100644
--- a/osu.Game/Overlays/Options/Sections/GameplaySection.cs
+++ b/osu.Game/Overlays/Options/Sections/GameplaySection.cs
@@ -14,7 +14,7 @@ namespace osu.Game.Overlays.Options.Sections
public GameplaySection()
{
- base.Children = new Drawable[]
+ Children = new Drawable[]
{
new GeneralOptions(),
new SongSelectOptions(),
diff --git a/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs b/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs
index 34f42aac43..b06644facd 100644
--- a/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs
+++ b/osu.Game/Overlays/Options/Sections/General/LoginOptions.cs
@@ -84,7 +84,7 @@ namespace osu.Game.Overlays.Options.Sections.General
}
}
- class LoginForm : FlowContainer
+ class LoginForm : FillFlowContainer
{
private TextBox username;
private TextBox password;
@@ -100,10 +100,10 @@ namespace osu.Game.Overlays.Options.Sections.General
private void load(APIAccess api, OsuConfigManager config)
{
this.api = api;
- Direction = FlowDirections.Vertical;
+ Direction = FillDirection.Down;
+ Spacing = new Vector2(0, 5);
AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
- Spacing = new Vector2(0, 5);
Children = new Drawable[]
{
username = new OsuTextBox
diff --git a/osu.Game/Overlays/Options/Sections/MaintenanceSection.cs b/osu.Game/Overlays/Options/Sections/MaintenanceSection.cs
index b69e085e6b..5393c42843 100644
--- a/osu.Game/Overlays/Options/Sections/MaintenanceSection.cs
+++ b/osu.Game/Overlays/Options/Sections/MaintenanceSection.cs
@@ -5,6 +5,7 @@ using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using OpenTK;
+using osu.Framework.Graphics.Containers;
namespace osu.Game.Overlays.Options.Sections
{
diff --git a/osu.Game/Overlays/Options/Sections/SkinSection.cs b/osu.Game/Overlays/Options/Sections/SkinSection.cs
index 56dd9ca318..71c460760e 100644
--- a/osu.Game/Overlays/Options/Sections/SkinSection.cs
+++ b/osu.Game/Overlays/Options/Sections/SkinSection.cs
@@ -8,6 +8,7 @@ using osu.Game.Configuration;
using osu.Game.Graphics;
using osu.Game.Graphics.UserInterface;
using OpenTK;
+using osu.Framework.Graphics.Containers;
namespace osu.Game.Overlays.Options.Sections
{
diff --git a/osu.Game/Overlays/Options/Sidebar.cs b/osu.Game/Overlays/Options/Sidebar.cs
index 362c448807..5a1128749c 100644
--- a/osu.Game/Overlays/Options/Sidebar.cs
+++ b/osu.Game/Overlays/Options/Sidebar.cs
@@ -15,7 +15,7 @@ namespace osu.Game.Overlays.Options
{
public class Sidebar : Container
{
- private FlowContainer content;
+ private FillFlowContainer content;
internal const float DEFAULT_WIDTH = ToolbarButton.WIDTH;
internal const int EXPANDED_WIDTH = 200;
protected override Container Content => content;
@@ -34,13 +34,13 @@ namespace osu.Game.Overlays.Options
{
Children = new []
{
- content = new FlowContainer
+ content = new FillFlowContainer
{
Origin = Anchor.CentreLeft,
Anchor = Anchor.CentreLeft,
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
- Direction = FlowDirections.Vertical
+ Direction = FillDirection.Down,
}
}
},
diff --git a/osu.Game/Overlays/OptionsOverlay.cs b/osu.Game/Overlays/OptionsOverlay.cs
index 6d47e628ea..968914c6c0 100644
--- a/osu.Game/Overlays/OptionsOverlay.cs
+++ b/osu.Game/Overlays/OptionsOverlay.cs
@@ -73,11 +73,11 @@ namespace osu.Game.Overlays
Margin = new MarginPadding { Left = SIDEBAR_WIDTH },
Children = new[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = new Drawable[]
{
@@ -94,11 +94,11 @@ namespace osu.Game.Overlays
TextSize = 18,
Margin = new MarginPadding { Left = CONTENT_MARGINS, Bottom = 30 },
},
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Y,
RelativeSizeAxes = Axes.X,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = sections,
}
}
diff --git a/osu.Game/Overlays/Pause/PauseOverlay.cs b/osu.Game/Overlays/Pause/PauseOverlay.cs
index ba472b2c20..5c85f3db9e 100644
--- a/osu.Game/Overlays/Pause/PauseOverlay.cs
+++ b/osu.Game/Overlays/Pause/PauseOverlay.cs
@@ -66,7 +66,7 @@ namespace osu.Game.Overlays.Pause
}
}
- private FlowContainer retryCounterContainer;
+ private FillFlowContainer retryCounterContainer;
public override bool Contains(Vector2 screenSpacePos) => true;
public override bool HandleInput => State == Visibility.Visible;
@@ -100,21 +100,21 @@ namespace osu.Game.Overlays.Pause
Colour = Color4.Black,
Alpha = background_alpha,
},
- new FlowContainer
+ new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
- Direction = FlowDirections.Vertical,
- Spacing = new Vector2(0f, 50f),
+ Direction = FillDirection.Down,
+ Spacing = new Vector2(0, 50),
Origin = Anchor.Centre,
Anchor = Anchor.Centre,
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Vertical,
- Spacing = new Vector2(0f, 20f),
+ Direction = FillDirection.Down,
+ Spacing = new Vector2(0, 20),
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,
Children = new Drawable[]
@@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Pause
}
}
},
- new FlowContainer
+ new FillFlowContainer
{
RelativeSizeAxes = Axes.X,
AutoSizeAxes = Axes.Y,
@@ -185,7 +185,7 @@ namespace osu.Game.Overlays.Pause
}
}
},
- retryCounterContainer = new FlowContainer
+ retryCounterContainer = new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Origin = Anchor.TopCentre,
diff --git a/osu.Game/Overlays/Pause/QuitButton.cs b/osu.Game/Overlays/Pause/QuitButton.cs
index 42466ca2e9..18b7c4eda9 100644
--- a/osu.Game/Overlays/Pause/QuitButton.cs
+++ b/osu.Game/Overlays/Pause/QuitButton.cs
@@ -12,7 +12,7 @@ namespace osu.Game.Overlays.Pause
public class QuitButton : DialogButton
{
[BackgroundDependencyLoader]
- private void load(AudioManager audio, OsuColour colours)
+ private void load(AudioManager audio)
{
ButtonColour = new Color4(170, 27, 39, 255); // The red from the design isn't in the palette so it's used directly
SampleHover = audio.Sample.Get(@"Menu/menuclick");
diff --git a/osu.Game/Overlays/Toolbar/Toolbar.cs b/osu.Game/Overlays/Toolbar/Toolbar.cs
index caed663c04..74cfc10e75 100644
--- a/osu.Game/Overlays/Toolbar/Toolbar.cs
+++ b/osu.Game/Overlays/Toolbar/Toolbar.cs
@@ -41,9 +41,9 @@ namespace osu.Game.Overlays.Toolbar
Children = new Drawable[]
{
new ToolbarBackground(),
- new FlowContainer
+ new FillFlowContainer
{
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new Drawable[]
@@ -63,7 +63,7 @@ namespace osu.Game.Overlays.Toolbar
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new Drawable[]
@@ -141,7 +141,7 @@ namespace osu.Game.Overlays.Toolbar
FadeOut(transition_time);
}
- class PassThroughFlowContainer : FlowContainer
+ class PassThroughFlowContainer : FillFlowContainer
{
//needed to get input to the login overlay.
public override bool Contains(Vector2 screenSpacePos) => true;
diff --git a/osu.Game/Overlays/Toolbar/ToolbarButton.cs b/osu.Game/Overlays/Toolbar/ToolbarButton.cs
index 9c3c1095a3..0e8165283e 100644
--- a/osu.Game/Overlays/Toolbar/ToolbarButton.cs
+++ b/osu.Game/Overlays/Toolbar/ToolbarButton.cs
@@ -62,10 +62,10 @@ namespace osu.Game.Overlays.Toolbar
protected TextAwesome DrawableIcon;
protected SpriteText DrawableText;
protected Box HoverBackground;
- private FlowContainer tooltipContainer;
+ private FillFlowContainer tooltipContainer;
private SpriteText tooltip1;
private SpriteText tooltip2;
- protected FlowContainer Flow;
+ protected FillFlowContainer Flow;
private SampleChannel sampleClick;
public ToolbarButton()
@@ -82,21 +82,21 @@ namespace osu.Game.Overlays.Toolbar
BlendingMode = BlendingMode.Additive,
Alpha = 0,
},
- Flow = new FlowContainer
+ Flow = new FillFlowContainer
{
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
+ Spacing = new Vector2(5),
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = Toolbar.HEIGHT / 2, Right = Toolbar.HEIGHT / 2 },
- Spacing = new Vector2(5),
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
Children = new Drawable[]
{
DrawableIcon = new TextAwesome
{
- Anchor = Anchor.CentreLeft,
- Origin = Anchor.CentreLeft,
+ Anchor = Anchor.Centre,
+ Origin = Anchor.Centre,
},
DrawableText = new OsuSpriteText
{
@@ -105,9 +105,9 @@ namespace osu.Game.Overlays.Toolbar
},
},
},
- tooltipContainer = new FlowContainer
+ tooltipContainer = new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
RelativeSizeAxes = Axes.Both, //stops us being considered in parent's autosize
Anchor = (TooltipAnchor & Anchor.x0) > 0 ? Anchor.BottomLeft : Anchor.BottomRight,
Origin = TooltipAnchor,
diff --git a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs
index b3d1d29ae9..31b8500155 100644
--- a/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs
+++ b/osu.Game/Overlays/Toolbar/ToolbarModeSelector.cs
@@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Toolbar
{
const float padding = 10;
- private FlowContainer modeButtons;
+ private FillFlowContainer modeButtons;
private Drawable modeButtonLine;
private ToolbarModeButton activeButton;
@@ -32,11 +32,11 @@ namespace osu.Game.Overlays.Toolbar
Children = new Drawable[]
{
new OpaqueBackground(),
- modeButtons = new FlowContainer
+ modeButtons = new FillFlowContainer
{
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Anchor = Anchor.TopCentre,
Origin = Anchor.TopCentre,
Padding = new MarginPadding { Left = padding, Right = padding },
diff --git a/osu.Game/Screens/Backgrounds/BackgroundScreenDefault.cs b/osu.Game/Screens/Backgrounds/BackgroundScreenDefault.cs
index 005efb77a2..f411f74361 100644
--- a/osu.Game/Screens/Backgrounds/BackgroundScreenDefault.cs
+++ b/osu.Game/Screens/Backgrounds/BackgroundScreenDefault.cs
@@ -9,7 +9,7 @@ namespace osu.Game.Screens.Backgrounds
public class BackgroundScreenDefault : BackgroundScreen
{
[BackgroundDependencyLoader]
- private void load(Framework.Game game)
+ private void load()
{
Add(new Background(@"Backgrounds/bg1"));
}
diff --git a/osu.Game/Screens/GameScreenWhiteBox.cs b/osu.Game/Screens/GameScreenWhiteBox.cs
index a172726e67..623b411e35 100644
--- a/osu.Game/Screens/GameScreenWhiteBox.cs
+++ b/osu.Game/Screens/GameScreenWhiteBox.cs
@@ -25,7 +25,7 @@ namespace osu.Game.Screens
protected virtual IEnumerable PossibleChildren => null;
- private FlowContainer childModeButtons;
+ private FillFlowContainer childModeButtons;
private Container textContainer;
private Box box;
@@ -124,9 +124,9 @@ namespace osu.Game.Screens
Exit();
}
},
- childModeButtons = new FlowContainer
+ childModeButtons = new FillFlowContainer
{
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
RelativeSizeAxes = Axes.Both,
diff --git a/osu.Game/Screens/Menu/Button.cs b/osu.Game/Screens/Menu/Button.cs
index b1e39c8a35..7398eb62e7 100644
--- a/osu.Game/Screens/Menu/Button.cs
+++ b/osu.Game/Screens/Menu/Button.cs
@@ -114,7 +114,7 @@ namespace osu.Game.Screens.Menu
new OsuSpriteText
{
Shadow = true,
- Direction = FlowDirections.Horizontal,
+ AllowMultiline = false,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
TextSize = 16,
diff --git a/osu.Game/Screens/Menu/ButtonSystem.cs b/osu.Game/Screens/Menu/ButtonSystem.cs
index dad7490c69..f26fded19d 100644
--- a/osu.Game/Screens/Menu/ButtonSystem.cs
+++ b/osu.Game/Screens/Menu/ButtonSystem.cs
@@ -78,16 +78,16 @@ namespace osu.Game.Screens.Menu
},
buttonFlow = new FlowContainerWithOrigin
{
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
+ Spacing = new Vector2(-WEDGE_WIDTH, 0),
Anchor = Anchor.Centre,
AutoSizeAxes = Axes.Both,
- Spacing = new Vector2(-WEDGE_WIDTH, 0),
Children = new[]
{
settingsButton = new Button(@"settings", @"options", FontAwesome.fa_gear, new Color4(85, 85, 85, 255), () => OnSettings?.Invoke(), -WEDGE_WIDTH, Key.O),
backButton = new Button(@"back", @"back", FontAwesome.fa_osu_left_o, new Color4(51, 58, 94, 255), onBack, -WEDGE_WIDTH),
iconFacade = new Container //need a container to make the osu! icon flow properly.
- {
+ {
Size = new Vector2(0, BUTTON_AREA_HEIGHT)
}
},
@@ -117,7 +117,7 @@ namespace osu.Game.Screens.Menu
}
[BackgroundDependencyLoader(true)]
- private void load(AudioManager audio, OsuGame game = null)
+ private void load(OsuGame game = null)
{
toolbar = game?.Toolbar;
}
diff --git a/osu.Game/Screens/Menu/Disclaimer.cs b/osu.Game/Screens/Menu/Disclaimer.cs
index 56074dbdfd..deb9a4dbf8 100644
--- a/osu.Game/Screens/Menu/Disclaimer.cs
+++ b/osu.Game/Screens/Menu/Disclaimer.cs
@@ -27,12 +27,12 @@ namespace osu.Game.Screens.Menu
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Spacing = new Vector2(0, 2),
Children = new Drawable[]
{
diff --git a/osu.Game/Screens/Menu/FlowContainerWithOrigin.cs b/osu.Game/Screens/Menu/FlowContainerWithOrigin.cs
index f8b92dc795..d0972ea84b 100644
--- a/osu.Game/Screens/Menu/FlowContainerWithOrigin.cs
+++ b/osu.Game/Screens/Menu/FlowContainerWithOrigin.cs
@@ -12,7 +12,7 @@ namespace osu.Game.Screens.Menu
///
/// A flow container with an origin based on one of its contained drawables.
///
- public class FlowContainerWithOrigin : FlowContainer
+ public class FlowContainerWithOrigin : FillFlowContainer
{
///
/// A target drawable which this flowcontainer should be centered around.
@@ -22,7 +22,7 @@ namespace osu.Game.Screens.Menu
protected override IComparer DepthComparer => new ReverseCreationOrderDepthComparer();
- protected override IEnumerable SortedChildren => base.SortedChildren.Reverse();
+ protected override IEnumerable FlowingChildren => base.FlowingChildren.Reverse();
public override Anchor Origin => Anchor.Custom;
diff --git a/osu.Game/Screens/Play/KeyCounterCollection.cs b/osu.Game/Screens/Play/KeyCounterCollection.cs
index 8e7f7558d7..0a93032a20 100644
--- a/osu.Game/Screens/Play/KeyCounterCollection.cs
+++ b/osu.Game/Screens/Play/KeyCounterCollection.cs
@@ -8,11 +8,11 @@ using OpenTK.Graphics;
namespace osu.Game.Screens.Play
{
- public class KeyCounterCollection : FlowContainer
+ public class KeyCounterCollection : FillFlowContainer
{
public KeyCounterCollection()
{
- Direction = FlowDirections.Horizontal;
+ Direction = FillDirection.Right;
AutoSizeAxes = Axes.Both;
}
diff --git a/osu.Game/Screens/Play/Player.cs b/osu.Game/Screens/Play/Player.cs
index b552601458..0a094d2050 100644
--- a/osu.Game/Screens/Play/Player.cs
+++ b/osu.Game/Screens/Play/Player.cs
@@ -24,6 +24,7 @@ using OpenTK.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Transforms;
using osu.Framework.Logging;
+using osu.Framework.Input;
namespace osu.Game.Screens.Play
{
@@ -72,6 +73,8 @@ namespace osu.Game.Screens.Play
private void load(AudioManager audio, BeatmapDatabase beatmaps, OsuGameBase game, OsuConfigManager config)
{
dimLevel = config.GetBindable(OsuConfig.DimLevel);
+ mouseWheelDisabled = config.GetBindable(OsuConfig.MouseDisableWheel);
+
try
{
if (Beatmap == null)
@@ -149,7 +152,6 @@ namespace osu.Game.Screens.Play
playerInputManager = new PlayerInputManager(game.Host)
{
Clock = new InterpolatingFramedClock(sourceClock),
- PassThrough = false,
Children = new Drawable[]
{
hitRenderer,
@@ -193,7 +195,6 @@ namespace osu.Game.Screens.Play
if (canPause || force)
{
lastPauseActionTime = Time.Current;
- playerInputManager.PassThrough = true;
scoreOverlay.KeyCounter.IsCounting = false;
pauseOverlay.Retries = RestartCount;
pauseOverlay.Show();
@@ -209,7 +210,6 @@ namespace osu.Game.Screens.Play
public void Resume()
{
lastPauseActionTime = Time.Current;
- playerInputManager.PassThrough = false;
scoreOverlay.KeyCounter.IsCounting = true;
pauseOverlay.Hide();
sourceClock.Start();
@@ -325,5 +325,9 @@ namespace osu.Game.Screens.Play
{
Background?.FadeTo((100f - dimLevel) / 100, 800);
}
+
+ private Bindable mouseWheelDisabled;
+
+ protected override bool OnWheel(InputState state) => mouseWheelDisabled.Value && !isPaused;
}
}
\ No newline at end of file
diff --git a/osu.Game/Screens/Play/PlayerLoader.cs b/osu.Game/Screens/Play/PlayerLoader.cs
index c5c9e6722f..bc04dbb2f7 100644
--- a/osu.Game/Screens/Play/PlayerLoader.cs
+++ b/osu.Game/Screens/Play/PlayerLoader.cs
@@ -131,12 +131,12 @@ namespace osu.Game.Screens.Play
AutoSizeAxes = Axes.Both;
Children = new Drawable[]
{
- new FlowContainer()
+ new FillFlowContainer()
{
AutoSizeAxes = Axes.Both,
Origin = Anchor.TopCentre,
Anchor = Anchor.TopCentre,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = new Drawable[]
{
new OsuSpriteText
diff --git a/osu.Game/Screens/Ranking/Results.cs b/osu.Game/Screens/Ranking/Results.cs
index 33c680e539..1c8972e4be 100644
--- a/osu.Game/Screens/Ranking/Results.cs
+++ b/osu.Game/Screens/Ranking/Results.cs
@@ -65,10 +65,10 @@ namespace osu.Game.Screens.Ranking
Children = new Drawable[]
{
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = new Drawable[]
{
new OsuSpriteText
diff --git a/osu.Game/Screens/Select/BeatmapInfoWedge.cs b/osu.Game/Screens/Select/BeatmapInfoWedge.cs
index 4a3b9b7fcd..a3493971cb 100644
--- a/osu.Game/Screens/Select/BeatmapInfoWedge.cs
+++ b/osu.Game/Screens/Select/BeatmapInfoWedge.cs
@@ -121,11 +121,11 @@ namespace osu.Game.Screens.Select
},
},
// Text for beatmap info
- new FlowContainer
+ new FillFlowContainer
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Margin = new MarginPadding { Top = 10, Left = 25, Right = 10, Bottom = 20 },
AutoSizeAxes = Axes.Both,
Children = new Drawable[]
@@ -144,10 +144,10 @@ namespace osu.Game.Screens.Select
TextSize = 17,
Shadow = true,
},
- new FlowContainer
+ new FillFlowContainer
{
Margin = new MarginPadding { Top = 10 },
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
AutoSizeAxes = Axes.Both,
Children = new []
{
@@ -167,10 +167,10 @@ namespace osu.Game.Screens.Select
},
}
},
- new FlowContainer
+ new FillFlowContainer
{
Margin = new MarginPadding { Top = 20 },
- Spacing = new Vector2(40,0),
+ Spacing = new Vector2(40, 0),
AutoSizeAxes = Axes.Both,
Children = labels
},
diff --git a/osu.Game/Screens/Select/FilterControl.cs b/osu.Game/Screens/Select/FilterControl.cs
index 23a61459ea..357346bc65 100644
--- a/osu.Game/Screens/Select/FilterControl.cs
+++ b/osu.Game/Screens/Select/FilterControl.cs
@@ -36,7 +36,7 @@ namespace osu.Game.Screens.Select
Alpha = 0.8f,
RelativeSizeAxes = Axes.Both,
},
- new FlowContainer
+ new FillFlowContainer
{
Padding = new MarginPadding(20),
AutoSizeAxes = Axes.Y,
@@ -44,7 +44,7 @@ namespace osu.Game.Screens.Select
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,
Width = 0.4f, // TODO: InnerWidth property or something
- Direction = FlowDirections.Vertical,
+ Direction = FillDirection.Down,
Children = new Drawable[]
{
searchTextBox = new SearchTextBox {
@@ -174,10 +174,10 @@ namespace osu.Game.Screens.Select
Origin = Anchor.BottomLeft,
Anchor = Anchor.BottomLeft,
},
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Spacing = new Vector2(10, 0),
Children = new Drawable[]
{
@@ -206,10 +206,10 @@ namespace osu.Game.Screens.Select
}
}
},
- new FlowContainer
+ new FillFlowContainer
{
AutoSizeAxes = Axes.Both,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Spacing = new Vector2(10, 0),
Origin = Anchor.TopRight,
Anchor = Anchor.TopRight,
diff --git a/osu.Game/Screens/Select/Footer.cs b/osu.Game/Screens/Select/Footer.cs
index 05ed670673..2b62e8d452 100644
--- a/osu.Game/Screens/Select/Footer.cs
+++ b/osu.Game/Screens/Select/Footer.cs
@@ -30,7 +30,7 @@ namespace osu.Game.Screens.Select
public Action OnBack;
public Action OnStart;
- private FlowContainer buttons;
+ private FillFlowContainer buttons;
public OsuLogo StartButton;
@@ -91,21 +91,20 @@ namespace osu.Game.Screens.Select
Origin = Anchor.BottomLeft,
Action = () => OnBack?.Invoke(),
},
- new FlowContainer
+ new FillFlowContainer
{
Anchor = Anchor.BottomLeft,
Origin = Anchor.BottomLeft,
Position = new Vector2(BackButton.SIZE_EXTENDED.X + padding, 0),
RelativeSizeAxes = Axes.Y,
AutoSizeAxes = Axes.X,
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Spacing = new Vector2(padding, 0),
Children = new Drawable[]
{
-
- buttons = new FlowContainer
+ buttons = new FillFlowContainer
{
- Direction = FlowDirections.Horizontal,
+ Direction = FillDirection.Right,
Spacing = new Vector2(0.2f, 0),
AutoSizeAxes = Axes.Both,
}