mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Add config to use default or owner collection for housing retainers.
This commit is contained in:
parent
eff6c2e9af
commit
abd1fd14f5
3 changed files with 9 additions and 0 deletions
|
|
@ -27,6 +27,7 @@ public partial class Configuration : IPluginConfiguration
|
|||
public bool UseCharacterCollectionInTryOn { get; set; } = true;
|
||||
public bool UseOwnerNameForCharacterCollection { get; set; } = true;
|
||||
public bool PreferNamedCollectionsOverOwners { get; set; } = true;
|
||||
public bool UseDefaultCollectionForRetainers { get; set; } = false;
|
||||
|
||||
#if DEBUG
|
||||
public bool DebugMode { get; set; } = true;
|
||||
|
|
|
|||
|
|
@ -271,6 +271,10 @@ public unsafe partial class PathResolver
|
|||
return Penumbra.CollectionManager.Default;
|
||||
}
|
||||
|
||||
// Housing Retainers
|
||||
if( Penumbra.Config.UseDefaultCollectionForRetainers && gameObject->ObjectKind == (byte) ObjectKind.EventNpc && gameObject->DataID == 1011832 )
|
||||
return Penumbra.CollectionManager.Default;
|
||||
|
||||
string? actorName = null;
|
||||
if( Penumbra.Config.PreferNamedCollectionsOverOwners )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -75,6 +75,10 @@ public partial class ConfigWindow
|
|||
"If you have a character collection set to a specific name for a companion or combat pet, prefer this collection over the owner's collection.\n"
|
||||
+ "That is, if you have a 'Topaz Carbuncle' collection, it will use this one instead of the one for its owner.",
|
||||
Penumbra.Config.PreferNamedCollectionsOverOwners, v => Penumbra.Config.PreferNamedCollectionsOverOwners = v );
|
||||
Checkbox( "Use Default Collection for Housing Retainers",
|
||||
"Housing Retainers use the name of their owner instead of their own, you can decide to let them use their owners character collection or the default collection.\n"
|
||||
+ "It is not possible to make them have their own collection, since they have no connection to their actual name.",
|
||||
Penumbra.Config.UseDefaultCollectionForRetainers, v => Penumbra.Config.UseDefaultCollectionForRetainers = v );
|
||||
ImGui.Dummy( _window._defaultSpace );
|
||||
DrawFolderSortType();
|
||||
DrawAbsoluteSizeSelector();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue