-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: 单独创建一个SettingsSubPanel展示Hikariii插件设置
- Loading branch information
1 parent
8369b02
commit a2c2327
Showing
3 changed files
with
87 additions
and
4 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Linq; | ||
using osu.Framework.Allocation; | ||
using osu.Framework.Graphics; | ||
using osu.Game.Overlays; | ||
using osu.Game.Overlays.Settings; | ||
using osu.Game.Rulesets.IGPlayer.Feature.Player.Interfaces.Plugins; | ||
using osu.Game.Rulesets.IGPlayer.Feature.Player.Plugins; | ||
using osu.Game.Rulesets.IGPlayer.Feature.Player.Plugins.Config; | ||
|
||
namespace osu.Game.Rulesets.IGPlayer.Settings.Mf; | ||
|
||
public partial class SubPanel : SettingsSubPanel | ||
{ | ||
protected override Drawable CreateHeader() | ||
{ | ||
return new SettingsHeader("Hikariii", "播放器和插件设置"); | ||
} | ||
|
||
[BackgroundDependencyLoader] | ||
private void load(LLinPluginManager manager) | ||
{ | ||
foreach (LLinPlugin pl in manager.GetAllPlugins(false).Where(pl => manager.GetSettingsFor(pl)?.Length > 0)) | ||
AddSection(new PluginSettingsSubsection(pl)); | ||
} | ||
} |