Skip to content

Commit

Permalink
Merge pull request #103 from ojh050118/import-all
Browse files Browse the repository at this point in the history
Add support for importing multiple beatmaps
  • Loading branch information
ojh050118 authored Mar 19, 2022
2 parents f0e2f2c + e4f3d5e commit ba81576
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion Circle.Game/Overlays/ImportOverlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,19 @@ public ImportOverlay(BufferedContainer gameScreen)
{
new BoxButton
{
Text = "Cancel",
Text = "Exit",
Action = Hide
},
new BoxButton
{
Text = "Import all",
Action = () =>
{
foreach (var circlez in fileSelector.CurrentPath.Value?.GetFiles(@"*.circlez")!)
startImport(circlez.FullName);
}
},
new BoxButton
{
Text = "Import",
Action = () => startImport(fileSelector.CurrentFile.Value?.FullName)
Expand Down

0 comments on commit ba81576

Please sign in to comment.