mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Column Touch area & highlighting on start
This commit is contained in:
@ -36,31 +36,10 @@ namespace osu.Game.Rulesets.Mania.UI.Components
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
}
|
||||
|
||||
public class ChildContainer : Container
|
||||
{
|
||||
private ManiaInputManager.RulesetKeyBindingContainer keyBindingContainer { get; set; }
|
||||
|
||||
private ManiaInputManager.RulesetKeyBindingContainer getKeyBindingContainer()
|
||||
{
|
||||
return keyBindingContainer ??= (ManiaInputManager.RulesetKeyBindingContainer)((ManiaInputManager)GetContainingInputManager()).KeyBindingContainer;
|
||||
}
|
||||
|
||||
protected override bool OnTouchDown(TouchDownEvent e)
|
||||
{
|
||||
getKeyBindingContainer().TriggerPressed(((DefaultKeyArea)Parent).column.Action.Value);
|
||||
return base.OnTouchDown(e);
|
||||
}
|
||||
|
||||
protected override void OnTouchUp(TouchUpEvent e)
|
||||
{
|
||||
getKeyBindingContainer().TriggerReleased(((DefaultKeyArea)Parent).column.Action.Value);
|
||||
}
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(IScrollingInfo scrollingInfo)
|
||||
{
|
||||
InternalChild = directionContainer = new ChildContainer
|
||||
InternalChild = directionContainer = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
Height = Stage.HIT_TARGET_POSITION,
|
||||
|
Reference in New Issue
Block a user