1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-15 00:52:57 +08:00
This commit is contained in:
smoogipoo 2017-11-30 00:11:00 +09:00
parent 49f0a7ff36
commit 0ec10ba32d
4 changed files with 4 additions and 5 deletions

View File

@ -21,7 +21,6 @@ using OpenTK.Graphics;
#if NET_FRAMEWORK
using System;
using System.Net.Http;
using osu.Framework.Logging;
using Squirrel;
#endif

View File

@ -126,7 +126,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
var beatmap = decoder.Decode(new StreamReader(stream));
var curveData = beatmap.HitObjects[0] as IHasCurve;
var positionData = beatmap.HitObjects[0] as IHasPosition;
var positionData = (IHasPosition)beatmap.HitObjects[0];
Assert.IsNotNull(positionData);
Assert.IsNotNull(curveData);
@ -134,7 +134,7 @@ namespace osu.Game.Tests.Beatmaps.Formats
Assert.AreEqual(956, beatmap.HitObjects[0].StartTime);
Assert.IsTrue(beatmap.HitObjects[0].Samples.Any(s => s.Name == SampleInfo.HIT_NORMAL));
positionData = beatmap.HitObjects[1] as IHasPosition;
positionData = (IHasPosition)beatmap.HitObjects[1];
Assert.IsNotNull(positionData);
Assert.AreEqual(new Vector2(304, 56), positionData.Position);

View File

@ -75,7 +75,7 @@ namespace osu.Game.Overlays.Profile.Sections.Kudosu
{
private readonly OsuSpriteText valueText;
public int Count
public new int Count
{
set { valueText.Text = value.ToString(); }
}

View File

@ -22,7 +22,7 @@ namespace osu.Game.Overlays.Settings
private readonly SpriteText headerText;
private readonly Box selectionIndicator;
private readonly Container text;
public Action<SettingsSection> Action;
public new Action<SettingsSection> Action;
private SettingsSection section;
public SettingsSection Section