mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add an option to allow file selector folders to be expanded or collapsed by default.
This commit is contained in:
parent
3014f7b246
commit
e52fca05d9
4 changed files with 11 additions and 1 deletions
2
OtterGui
2
OtterGui
|
|
@ -1 +1 @@
|
|||
Subproject commit 3679cb37d5cc04351c064b1372a6eac51c7375a8
|
||||
Subproject commit f401cea47e45d12e09d1668187e3bb2781af21dd
|
||||
|
|
@ -43,6 +43,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
public bool ScaleModSelector { get; set; } = false;
|
||||
public float ModSelectorAbsoluteSize { get; set; } = Constants.DefaultAbsoluteSize;
|
||||
public int ModSelectorScaledSize { get; set; } = Constants.DefaultScaledSize;
|
||||
public bool OpenFoldersByDefault { get; set; } = false;
|
||||
|
||||
|
||||
public bool ShowAdvanced { get; set; }
|
||||
|
|
|
|||
|
|
@ -76,6 +76,9 @@ public sealed partial class ModFileSystemSelector : FileSystemSelector< Mod, Mod
|
|||
protected override uint FolderLineColor
|
||||
=> ColorId.FolderLine.Value();
|
||||
|
||||
protected override bool FoldersDefaultOpen
|
||||
=> Penumbra.Config.OpenFoldersByDefault;
|
||||
|
||||
protected override void DrawPopups()
|
||||
{
|
||||
_fileManager.Draw();
|
||||
|
|
|
|||
|
|
@ -79,6 +79,12 @@ public partial class ConfigWindow
|
|||
DrawFolderSortType();
|
||||
DrawAbsoluteSizeSelector();
|
||||
DrawRelativeSizeSelector();
|
||||
Checkbox( "Open Folders by Default", "Whether to start with all folders collapsed or expanded in the mod selector.",
|
||||
Penumbra.Config.OpenFoldersByDefault, v =>
|
||||
{
|
||||
Penumbra.Config.OpenFoldersByDefault = v;
|
||||
_window._selector.SetFilterDirty();
|
||||
} );
|
||||
ImGui.Dummy( _window._defaultSpace );
|
||||
DrawDefaultModImportPath();
|
||||
DrawDefaultModAuthor();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue