From 8e9a5e9faab3715096a7eea4ed0c7de9a4d44b80 Mon Sep 17 00:00:00 2001 From: Dean Herbert Date: Tue, 14 Feb 2017 17:52:53 +0900 Subject: [PATCH] Add the ability to make DrawableHitObjects non-interactive (for use in other contexts). --- osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs b/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs index d4beabe2ba..4df49ca01f 100644 --- a/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs +++ b/osu.Game/Modes/Objects/Drawables/DrawableHitObject.cs @@ -19,6 +19,10 @@ namespace osu.Game.Modes.Objects.Drawables { public event Action OnJudgement; + public override bool HandleInput => Interactive; + + public bool Interactive = true; + public Container ChildObjects; public JudgementInfo Judgement;