-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #230 from andy840119/meow/import-file
Implement drag .lrc/.kar file to import.
- Loading branch information
Showing
5 changed files
with
150 additions
and
3 deletions.
There are no files selected for viewing
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
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
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
32 changes: 32 additions & 0 deletions
32
osu.Game.Rulesets.Karaoke/Edit/LyricEditor/ImportLyricDialog.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.Graphics.Sprites; | ||
using osu.Game.Overlays.Dialog; | ||
using System; | ||
|
||
namespace osu.Game.Rulesets.Karaoke.Edit.LyricEditor | ||
{ | ||
public class ImportLyricDialog : PopupDialog | ||
{ | ||
public ImportLyricDialog(Action resetAction) | ||
{ | ||
BodyText = "Import lyric file will clean-up all exist lyric."; | ||
|
||
Icon = FontAwesome.Regular.TrashAlt; | ||
HeaderText = @"Confirm import lyric file?"; | ||
Buttons = new PopupDialogButton[] | ||
{ | ||
new PopupDialogOkButton | ||
{ | ||
Text = @"Yes. Go for it.", | ||
Action = resetAction | ||
}, | ||
new PopupDialogCancelButton | ||
{ | ||
Text = @"No! Abort mission!", | ||
}, | ||
}; | ||
} | ||
} | ||
} |
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