mirror of
https://github.com/ppy/osu.git
synced 2025-02-01 01:12:54 +08:00
Populate HandleInput automatically
This commit is contained in:
parent
2fdf39586a
commit
219bdbc4e1
@ -11,8 +11,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
|
|||||||
{
|
{
|
||||||
public class SpinnerBackground : CircularContainer, IHasAccentColour
|
public class SpinnerBackground : CircularContainer, IHasAccentColour
|
||||||
{
|
{
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
protected Box Disc;
|
protected Box Disc;
|
||||||
|
|
||||||
public Color4 AccentColour
|
public Color4 AccentColour
|
||||||
|
@ -20,8 +20,6 @@ namespace osu.Game.Rulesets.Osu.UI.Cursor
|
|||||||
{
|
{
|
||||||
internal class CursorTrail : Drawable
|
internal class CursorTrail : Drawable
|
||||||
{
|
{
|
||||||
public override bool HandleInput => true;
|
|
||||||
|
|
||||||
private int currentIndex;
|
private int currentIndex;
|
||||||
|
|
||||||
private Shader shader;
|
private Shader shader;
|
||||||
|
@ -21,8 +21,6 @@ namespace osu.Game.Overlays
|
|||||||
{
|
{
|
||||||
private readonly Container box;
|
private readonly Container box;
|
||||||
|
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
private readonly SpriteText textLine1;
|
private readonly SpriteText textLine1;
|
||||||
private readonly SpriteText textLine2;
|
private readonly SpriteText textLine2;
|
||||||
private readonly SpriteText textLine3;
|
private readonly SpriteText textLine3;
|
||||||
|
@ -159,8 +159,6 @@ namespace osu.Game.Overlays.Settings
|
|||||||
|
|
||||||
public string TooltipText => "Revert to default";
|
public string TooltipText => "Revert to default";
|
||||||
|
|
||||||
public override bool HandleInput => true;
|
|
||||||
|
|
||||||
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
protected override bool OnMouseDown(InputState state, MouseDownEventArgs args) => true;
|
||||||
|
|
||||||
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args) => true;
|
protected override bool OnMouseUp(InputState state, MouseUpEventArgs args) => true;
|
||||||
|
@ -64,8 +64,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
|
|
||||||
private readonly float[] frequencyAmplitudes = new float[256];
|
private readonly float[] frequencyAmplitudes = new float[256];
|
||||||
|
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
private Shader shader;
|
private Shader shader;
|
||||||
private readonly Texture texture;
|
private readonly Texture texture;
|
||||||
|
|
||||||
|
@ -19,8 +19,6 @@ namespace osu.Game.Screens.Menu
|
|||||||
{
|
{
|
||||||
public class MenuSideFlashes : BeatSyncedContainer
|
public class MenuSideFlashes : BeatSyncedContainer
|
||||||
{
|
{
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
private readonly Bindable<WorkingBeatmap> beatmap = new Bindable<WorkingBeatmap>();
|
||||||
|
|
||||||
private readonly Box leftBox;
|
private readonly Box leftBox;
|
||||||
|
@ -16,8 +16,6 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
|
|
||||||
public bool ReplayLoaded;
|
public bool ReplayLoaded;
|
||||||
|
|
||||||
public override bool HandleInput => true;
|
|
||||||
|
|
||||||
public readonly PlaybackSettings PlaybackSettings;
|
public readonly PlaybackSettings PlaybackSettings;
|
||||||
//public readonly CollectionSettings CollectionSettings;
|
//public readonly CollectionSettings CollectionSettings;
|
||||||
//public readonly DiscussionSettings DiscussionSettings;
|
//public readonly DiscussionSettings DiscussionSettings;
|
||||||
@ -35,7 +33,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
Direction = FillDirection.Vertical,
|
Direction = FillDirection.Vertical,
|
||||||
Spacing = new Vector2(0, 20),
|
Spacing = new Vector2(0, 20),
|
||||||
Margin = new MarginPadding { Top = 100, Right = 10 },
|
Margin = new MarginPadding { Top = 100, Right = 10 },
|
||||||
Children = new []
|
Children = new[]
|
||||||
{
|
{
|
||||||
//CollectionSettings = new CollectionSettings(),
|
//CollectionSettings = new CollectionSettings(),
|
||||||
//DiscussionSettings = new DiscussionSettings(),
|
//DiscussionSettings = new DiscussionSettings(),
|
||||||
|
@ -141,8 +141,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
|
public override bool ReceiveMouseInputAt(Vector2 screenSpacePos) => true;
|
||||||
|
|
||||||
public override bool HandleInput => true;
|
|
||||||
|
|
||||||
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) => Target.Children.Any(c => c.TriggerOnKeyDown(state, args));
|
protected override bool OnKeyDown(InputState state, KeyDownEventArgs args) => Target.Children.Any(c => c.TriggerOnKeyDown(state, args));
|
||||||
|
|
||||||
protected override bool OnKeyUp(InputState state, KeyUpEventArgs args) => Target.Children.Any(c => c.TriggerOnKeyUp(state, args));
|
protected override bool OnKeyUp(InputState state, KeyUpEventArgs args) => Target.Children.Any(c => c.TriggerOnKeyUp(state, args));
|
||||||
|
@ -21,8 +21,6 @@ namespace osu.Game.Screens.Play
|
|||||||
|
|
||||||
public int ColumnCount => columns.Length;
|
public int ColumnCount => columns.Length;
|
||||||
|
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
private int progress;
|
private int progress;
|
||||||
public int Progress
|
public int Progress
|
||||||
{
|
{
|
||||||
|
@ -26,7 +26,6 @@ namespace osu.Game.Storyboards.Drawables
|
|||||||
protected override Container<DrawableStoryboardLayer> Content => content;
|
protected override Container<DrawableStoryboardLayer> Content => content;
|
||||||
|
|
||||||
protected override Vector2 DrawScale => new Vector2(Parent.DrawHeight / 480);
|
protected override Vector2 DrawScale => new Vector2(Parent.DrawHeight / 480);
|
||||||
public override bool HandleInput => false;
|
|
||||||
|
|
||||||
private bool passing = true;
|
private bool passing = true;
|
||||||
public bool Passing
|
public bool Passing
|
||||||
|
Loading…
Reference in New Issue
Block a user