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

Make stuff compile again (but StarCounter hits assertions).

This commit is contained in:
Dean Herbert 2016-10-12 16:11:40 +09:00
parent e800649633
commit 61d5c7c56d
6 changed files with 25 additions and 13 deletions

View File

@ -3,6 +3,7 @@
using OpenTK;
using OpenTK.Graphics;
using osu.Framework;
using osu.Framework.Graphics.Transformations;
using System;
using System.Collections.Generic;
@ -29,9 +30,10 @@ namespace osu.Game.Graphics.UserInterface
IsRollingContinuous = false;
}
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
countSpriteText.Hide();
OriginalColour = Colour;
}

View File

@ -1,6 +1,7 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using System;
@ -31,9 +32,10 @@ namespace osu.Game.Graphics.UserInterface
}
}
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
Children = new Drawable[]
{
countSpriteText = new SpriteText

View File

@ -1,4 +1,5 @@
using osu.Framework.Graphics;
using osu.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Transformations;
using System;
@ -109,9 +110,9 @@ namespace osu.Game.Graphics.UserInterface
);
}
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
removeTransforms(transformType);
if (Count == null)
ResetCount();

View File

@ -1,6 +1,7 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework;
using System;
using System.Collections.Generic;
using System.Linq;
@ -16,9 +17,10 @@ namespace osu.Game.Graphics.UserInterface
/// </summary>
public uint LeadingZeroes = 0;
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
countSpriteText.FixedWidth = true;
}

View File

@ -1,6 +1,7 @@
//Copyright (c) 2007-2016 ppy Pty Ltd <contact@ppy.sh>.
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework;
using osu.Framework.Graphics.Sprites;
using osu.Framework.Graphics.Transformations;
using System;
@ -30,9 +31,10 @@ namespace osu.Game.Graphics.UserInterface
IsRollingContinuous = false;
}
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
countSpriteText.Alpha = 0;
Add(popOutSpriteText = new SpriteText
{

View File

@ -2,6 +2,7 @@
//Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using OpenTK;
using osu.Framework;
using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Transformations;
@ -52,9 +53,9 @@ namespace osu.Game.Graphics.UserInterface
StopRolling();
}
public override void Load()
public override void Load(BaseGame game)
{
base.Load();
base.Load(game);
Children = new Drawable[]
{
@ -79,6 +80,8 @@ namespace osu.Game.Graphics.UserInterface
Alpha = (i == 0) ? 1.0f : MinStarAlpha,
Position = new Vector2((StarSize + StarSpacing) * i + (StarSize + StarSpacing) / 2, 0),
};
//todo: user Container<T> once we have it.
stars.Add(star);
starContainer.Add(star);
}