// Copyright (c) 2007-2017 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using System; using System.Collections.Generic; using System.Linq; using osu.Framework; using osu.Framework.Allocation; using osu.Framework.Audio; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Sprites; using osu.Framework.Graphics.Transformations; using osu.Framework.Input; using osu.Game.Graphics; using osu.Game.Overlays.Toolbar; using OpenTK; using OpenTK.Graphics; using OpenTK.Input; namespace osu.Game.Screens.Menu { public partial class ButtonSystem : Container, IStateful { public Action OnEdit; public Action OnExit; public Action OnDirect; public Action OnSolo; public Action OnSettings; public Action OnMulti; public Action OnChart; public Action OnTest; private Toolbar toolbar; private FlowContainerWithOrigin buttonFlow; //todo: make these non-internal somehow. internal const float BUTTON_AREA_HEIGHT = 100; internal const float BUTTON_WIDTH = 140f; internal const float WEDGE_WIDTH = 20; public const int EXIT_DELAY = 3000; private OsuLogo osuLogo; private Drawable iconFacade; private Container buttonArea; private Box buttonAreaBackground; private Button backButton; private Button settingsButton; List