From 02dc8dc167c68722f28f2a92e27e7d8e5d5231c6 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Sun, 16 Oct 2016 18:39:10 +0900 Subject: [PATCH] Change the way VolumeControl handles global input. --- osu.Game/VolumeControl.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/osu.Game/VolumeControl.cs b/osu.Game/VolumeControl.cs index bc67513fb4..90ca5a1f89 100644 --- a/osu.Game/VolumeControl.cs +++ b/osu.Game/VolumeControl.cs @@ -4,10 +4,11 @@ using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Input; using OpenTK; +using osu.Framework.Graphics.Primitives; namespace osu.Game { - internal class VolumeControl : Container + internal class VolumeControl : AutoSizeContainer { private FlowContainer volumeMetersContainer; private VolumeMeter volumeMeterMaster; @@ -15,14 +16,14 @@ namespace osu.Game public BindableDouble VolumeSample { get; set; } public BindableDouble VolumeTrack { get; set; } - public VolumeControl() - { - RelativeSizeAxes = Axes.Both; - } + public override bool Contains(Vector2 screenSpacePos) => true; private void volumeChanged(object sender, System.EventArgs e) { appear(); + + Anchor = Anchor.BottomRight; + Origin = Anchor.BottomRight; } public override void Load(BaseGame game)