mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 15:44:04 +09:00
Add TestCase for main menu ButtonSystem.
This commit is contained in:
@ -11,7 +11,6 @@ using osu.Framework.Graphics.Primitives;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Framework.Graphics.Transformations;
|
||||
using osu.Framework.Input;
|
||||
using osu.Framework.Threading;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Game.Graphics.Containers;
|
||||
using OpenTK;
|
||||
@ -20,7 +19,7 @@ using OpenTK.Input;
|
||||
|
||||
namespace osu.Game.GameModes.Menu
|
||||
{
|
||||
internal class ButtonSystem : OsuLargeComponent
|
||||
public class ButtonSystem : OsuLargeComponent
|
||||
{
|
||||
private FlowContainerWithOrigin buttonFlow;
|
||||
|
||||
@ -291,7 +290,6 @@ namespace osu.Game.GameModes.Menu
|
||||
|
||||
Sprite ripple;
|
||||
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
logoBounceContainer = new AutoSizeContainer
|
||||
|
@ -1,19 +1,12 @@
|
||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
class OsuComponent : AutoSizeContainer
|
||||
{
|
||||
public new OsuGame Game => base.Game as OsuGame;
|
||||
public new OsuGameBase Game => base.Game as OsuGameBase;
|
||||
}
|
||||
}
|
||||
|
@ -1,17 +1,12 @@
|
||||
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
|
||||
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
|
||||
namespace osu.Game.Graphics.Containers
|
||||
{
|
||||
class OsuLargeComponent : LargeContainer
|
||||
public class OsuLargeComponent : LargeContainer
|
||||
{
|
||||
public new OsuGame Game => base.Game as OsuGame;
|
||||
public new OsuGameBase Game => base.Game as OsuGameBase;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user