mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09:00
Warning fixes
This commit is contained in:
@ -27,25 +27,16 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
private readonly Box hoveredBackground;
|
||||
private readonly Box background;
|
||||
|
||||
private readonly SpriteText rank;
|
||||
private readonly SpriteText scoreText;
|
||||
private readonly SpriteText accuracy;
|
||||
private readonly SpriteText maxCombo;
|
||||
private readonly SpriteText hitGreat;
|
||||
private readonly SpriteText hitGood;
|
||||
private readonly SpriteText hitMeh;
|
||||
private readonly SpriteText hitMiss;
|
||||
private readonly SpriteText pp;
|
||||
|
||||
private readonly ClickableScoreUsername username;
|
||||
|
||||
private readonly APIScoreInfo score;
|
||||
|
||||
public DrawableScore(int index, APIScoreInfo score, int maxModsAmount)
|
||||
{
|
||||
FillFlowContainer modsContainer;
|
||||
SpriteText accuracy;
|
||||
SpriteText scoreText;
|
||||
SpriteText hitGreat;
|
||||
SpriteText hitGood;
|
||||
SpriteText hitMeh;
|
||||
SpriteText hitMiss;
|
||||
|
||||
this.score = score;
|
||||
FillFlowContainer modsContainer;
|
||||
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Height = 25;
|
||||
@ -62,7 +53,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Alpha = 0,
|
||||
},
|
||||
rank = new SpriteText
|
||||
new SpriteText
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreRight,
|
||||
@ -102,14 +93,14 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
Size = new Vector2(20, 13),
|
||||
X = 230,
|
||||
},
|
||||
username = new ClickableScoreUsername
|
||||
new ClickableScoreUsername
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
User = score.User,
|
||||
X = ScoreTextLine.PLAYER_POSITION,
|
||||
},
|
||||
maxCombo = new SpriteText
|
||||
new SpriteText
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
@ -154,7 +145,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
X = ScoreTextLine.HIT_MISS_POSITION,
|
||||
TextSize = text_size,
|
||||
},
|
||||
pp = new SpriteText
|
||||
new SpriteText
|
||||
{
|
||||
Anchor = Anchor.CentreLeft,
|
||||
Origin = Anchor.CentreLeft,
|
||||
|
@ -330,10 +330,9 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
private const float header_text_size = 12;
|
||||
|
||||
private readonly SpriteText headerText;
|
||||
private readonly Box line;
|
||||
|
||||
public DrawableInfoColumn(string header)
|
||||
protected DrawableInfoColumn(string header)
|
||||
{
|
||||
AutoSizeAxes = Axes.Y;
|
||||
Direction = FillDirection.Vertical;
|
||||
@ -344,7 +343,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
AutoSizeAxes = Axes.X,
|
||||
Height = header_text_size,
|
||||
Child = headerText = new SpriteText
|
||||
Child = new SpriteText
|
||||
{
|
||||
TextSize = 12,
|
||||
Text = header.ToUpper(),
|
||||
@ -415,7 +414,7 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
get { return valueText.Text; }
|
||||
}
|
||||
|
||||
public TextInfoColumn(string header, float valueTextSize = 25) : base(header)
|
||||
protected TextInfoColumn(string header, float valueTextSize = 25) : base(header)
|
||||
{
|
||||
Add(valueText = new SpriteText
|
||||
{
|
||||
|
@ -5,7 +5,6 @@ using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
@ -28,7 +27,6 @@ namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
|
||||
Add(new ScoreTextLine(maxModsAmount));
|
||||
|
||||
|
||||
int index = 0;
|
||||
foreach (var s in scores)
|
||||
Add(new DrawableScore(index++, s, maxModsAmount));
|
||||
|
@ -1,11 +1,9 @@
|
||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||
// See the LICENCE file in the repository root for full licence text.
|
||||
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Sprites;
|
||||
using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.BeatmapSet.Scores
|
||||
{
|
||||
|
@ -12,7 +12,6 @@ using osu.Game.Online.API;
|
||||
using osu.Game.Online.API.Requests;
|
||||
using osu.Game.Online.API.Requests.Responses;
|
||||
using osuTK;
|
||||
using osuTK.Graphics;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
|
Reference in New Issue
Block a user