1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 08:07:24 +08:00

Merge pull request #148 from peppy/generic-container

Generic containers.
This commit is contained in:
Dean Herbert 2016-11-09 11:33:58 +09:00 committed by GitHub
commit fe843edc4e
8 changed files with 10 additions and 10 deletions

@ -1 +1 @@
Subproject commit 478d0dd295a66c99556ca8039453e0f806ff4e9b
Subproject commit b8d0a0050be25aec4333134ca18497340e1154a7

View File

@ -12,7 +12,7 @@ namespace osu.Game.GameModes.Play.Osu
{
public class OsuPlayfield : Playfield
{
protected override Container Content => hitObjectContainer;
protected override Container<Drawable> Content => hitObjectContainer;
private Container hitObjectContainer;
@ -53,7 +53,7 @@ namespace osu.Game.GameModes.Play.Osu
class HitObjectContainer : Container
{
protected override Vector2 ChildScale => new Vector2(0.625f);
public override Vector2 ChildScale => new Vector2(0.625f);
}
}
}

View File

@ -25,7 +25,7 @@ namespace osu.Game.Graphics.Containers
private Container content;
protected override Container Content => content;
protected override Container<Drawable> Content => content;
protected override void Load(BaseGame game)
{

View File

@ -30,7 +30,7 @@ namespace osu.Game
public OptionsOverlay Options;
public APIAccess API;
protected override Container Content => ratioContainer;
protected override Container<Drawable> Content => ratioContainer;
private RatioAdjust ratioContainer;

View File

@ -27,7 +27,7 @@ namespace osu.Game.Overlays
private Container content;
protected override Container Content => content;
protected override Container<Drawable> Content => content;
private APIAccess api;

View File

@ -11,7 +11,7 @@ namespace osu.Game.Overlays.Options
public abstract class OptionsSection : Container
{
protected FlowContainer content;
protected override Container Content => content;
protected override Container<Drawable> Content => content;
public abstract FontAwesome Icon { get; }
protected abstract string Header { get; }

View File

@ -12,7 +12,7 @@ namespace osu.Game.Overlays.Options
public class OptionsSideNav : Container
{
private FlowContainer content;
protected override Container Content => content;
protected override Container<Drawable> Content => content;
public OptionsSideNav()
{

View File

@ -7,8 +7,8 @@ namespace osu.Game.Overlays.Options
{
public abstract class OptionsSubsection : Container
{
private Container content;
protected override Container Content => content;
private Container<Drawable> content;
protected override Container<Drawable> Content => content;
protected abstract string Header { get; }