Skip to content

Commit

Permalink
Adjust style.
Browse files Browse the repository at this point in the history
  • Loading branch information
andy840119 committed Nov 1, 2020
1 parent bb2ad96 commit 2f1db9d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 3 additions & 0 deletions osu.Game.Rulesets.Karaoke.Tests/Edit/TestSceneSinger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,23 @@ public TestSceneSinger()
singer.RomajiName = "Hatsune Miku";
singer.EnglishName = "Miku";
singer.Description = "International superstar vocaloid Hatsune Miku.";
singer.Color = Colour4.AliceBlue;
});
karaokeBeatmap.SingerMetadata.CreateSinger(singer =>
{
singer.Name = "ハク";
singer.RomajiName = "haku";
singer.EnglishName = "andy840119";
singer.Description = "Creator of this ruleset.";
singer.Color = Colour4.Yellow;
});
karaokeBeatmap.SingerMetadata.CreateSinger(singer =>
{
singer.Name = "ゴミパソコン";
singer.RomajiName = "gomi-pasokonn";
singer.EnglishName = "garbage desktop";
singer.Description = "My fucking slow desktop.";
singer.Color = Colour4.Brown;
});

editorBeatmap = new EditorBeatmap(karaokeBeatmap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ private void load(OverlayColourProvider colourProvider)

protected abstract float SingerInfoSize { get; }

protected abstract Drawable CreateSingerInfo(Singer singer) ;
protected abstract Drawable CreateSingerInfo(Singer singer);

protected class SingerLyricBlueprintContainer : BlueprintContainer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public DrawableSingerInfo(Singer singer)
Name = "Background",
RelativeSizeAxes = Axes.Both,
Colour = singer.Color ?? new Color4(),
Alpha = singer.Color != null ? 1 : 0
Alpha = singer.Color != null ? 0.3f : 0
},
new GridContainer
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override Drawable CreateContent()
Masking = true,
CornerRadius = 5,
RelativeSizeAxes = Axes.X,
Height = 120,
Height = 90,
Margin = new MarginPadding { Top = 5 },
Children = new Drawable[]
{
Expand Down
2 changes: 0 additions & 2 deletions osu.Game.Rulesets.Karaoke/Graphics/Cursor/SingerToolTip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,5 @@ public override bool SetContent(object content)

return true;
}


}
}

0 comments on commit 2f1db9d

Please sign in to comment.