mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Fix most warnings.
This commit is contained in:
@ -12,7 +12,7 @@ using System.Linq;
|
||||
|
||||
namespace osu.Game.Screens.Tournament.Components
|
||||
{
|
||||
class VisualiserContainer : Container
|
||||
internal class VisualiserContainer : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// Number of lines in the visualiser.
|
||||
@ -36,7 +36,7 @@ namespace osu.Game.Screens.Tournament.Components
|
||||
|
||||
private void addLine()
|
||||
{
|
||||
VisualiserLine newLine = new VisualiserLine()
|
||||
VisualiserLine newLine = new VisualiserLine
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
||||
@ -59,7 +59,7 @@ namespace osu.Game.Screens.Tournament.Components
|
||||
allLines.Remove(allLines.First());
|
||||
}
|
||||
|
||||
class VisualiserLine : Container
|
||||
private class VisualiserLine : Container
|
||||
{
|
||||
/// <summary>
|
||||
/// Time offset.
|
||||
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Tournament.Components
|
||||
|
||||
private Texture texture;
|
||||
|
||||
private int expiredCount = 0;
|
||||
private int expiredCount;
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(TextureStore textures)
|
||||
@ -106,7 +106,7 @@ namespace osu.Game.Screens.Tournament.Components
|
||||
|
||||
private void addLine()
|
||||
{
|
||||
Add(new Sprite()
|
||||
Add(new Sprite
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
|
@ -120,7 +120,7 @@ namespace osu.Game.Screens.Tournament
|
||||
return sb.ToString();
|
||||
}
|
||||
|
||||
class GroupTeam : Container
|
||||
private class GroupTeam : Container
|
||||
{
|
||||
public Team Team;
|
||||
|
||||
|
@ -296,7 +296,7 @@ namespace osu.Game.Screens.Tournament
|
||||
TransformFloatTo(speed, value, duration, easing, new TransformScrollSpeed());
|
||||
}
|
||||
|
||||
enum ScrollState
|
||||
private enum ScrollState
|
||||
{
|
||||
None,
|
||||
Idle,
|
||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Screens.Tournament.Teams
|
||||
{
|
||||
while (sr.Peek() != -1)
|
||||
{
|
||||
string line = sr.ReadLine().Trim();
|
||||
string line = sr.ReadLine()?.Trim();
|
||||
|
||||
if (string.IsNullOrEmpty(line))
|
||||
continue;
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Tournament.Teams
|
||||
string acronym = split.Length >= 3 ? split[2].Trim() : teamName;
|
||||
acronym = acronym.Substring(0, Math.Min(3, acronym.Length));
|
||||
|
||||
teams.Add(new Team()
|
||||
teams.Add(new Team
|
||||
{
|
||||
FlagName = flagName,
|
||||
FullName = teamName,
|
||||
|
Reference in New Issue
Block a user