-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9f052e
commit 7969515
Showing
4 changed files
with
80 additions
and
60 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
osu.Game.Rulesets.Karaoke/Edit/Setup/KaraokeNoteSection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Localisation; | ||
using osu.Game.Graphics.UserInterfaceV2; | ||
using osu.Game.Rulesets.Karaoke.Beatmaps; | ||
using osu.Game.Screens.Edit.Setup; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.Setup; | ||
|
||
public partial class KaraokeNoteSection : SetupSection | ||
{ | ||
public override LocalisableString Title => "Note"; | ||
|
||
private LabelledSwitchButton scorable = null!; | ||
|
||
[BackgroundDependencyLoader] | ||
private void load() | ||
{ | ||
Children = new Drawable[] | ||
{ | ||
scorable = new LabelledSwitchButton | ||
{ | ||
Label = "Scorable", | ||
Description = "Will not show score playfield if the option is unchecked.", | ||
Current = { Value = true }, | ||
}, | ||
}; | ||
|
||
scorable.Current.BindValueChanged(_ => updateValues()); | ||
} | ||
|
||
private void updateValues() | ||
{ | ||
if (Beatmap.PlayableBeatmap is not KaraokeBeatmap karaokeBeatmap) | ||
throw new InvalidOperationException(); | ||
|
||
karaokeBeatmap.Scorable = scorable.Current.Value; | ||
} | ||
} |
59 changes: 0 additions & 59 deletions
59
osu.Game.Rulesets.Karaoke/Edit/Setup/KaraokeSetupSection.cs
This file was deleted.
Oops, something went wrong.
32 changes: 32 additions & 0 deletions
32
osu.Game.Rulesets.Karaoke/Edit/Setup/KaraokeSingerSection.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
// Copyright (c) andy840119 <[email protected]>. Licensed under the GPL Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Framework.Localisation; | ||
using osu.Game.Rulesets.Karaoke.Edit.Setup.Components; | ||
using osu.Game.Screens.Edit.Setup; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.Setup; | ||
|
||
public partial class KaraokeSingerSection : SetupSection | ||
{ | ||
public override LocalisableString Title => "Singers"; | ||
|
||
private LabelledSingerList singerList = null!; | ||
|
||
[BackgroundDependencyLoader] | ||
private void load() | ||
{ | ||
Children = new Drawable[] | ||
{ | ||
singerList = new LabelledSingerList | ||
{ | ||
Label = "Singer list", | ||
Description = "All the singers in beatmap.", | ||
FixedLabelWidth = LABEL_WIDTH, | ||
SingerNamePrefix = "#", | ||
}, | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters