Deal with multiple resource containers in resource manager.

This commit is contained in:
Ottermandias 2022-07-26 16:25:20 +02:00
parent 842b1c1fe5
commit 0b2b0d1beb
4 changed files with 20 additions and 13 deletions

View file

@ -564,8 +564,8 @@ public partial class ConfigWindow
// Move from one group to another by deleting, then adding the option.
var sourceGroup = _dragDropGroupIdx;
var sourceOption = _dragDropOptionIdx;
var option = @group[ _dragDropOptionIdx ];
var priority = @group.OptionPriority( _dragDropGroupIdx );
var option = group[ _dragDropOptionIdx ];
var priority = group.OptionPriority( _dragDropGroupIdx );
panel._delayedActions.Enqueue( () =>
{
Penumbra.ModManager.DeleteOption( panel._mod, sourceGroup, sourceOption );

View file

@ -119,14 +119,14 @@ public partial class ConfigWindow
// Draw a full category for the resource manager.
private unsafe void DrawCategoryContainer( ResourceCategory category,
StdMap< uint, Pointer< StdMap< uint, Pointer< ResourceHandle > > > >* map )
StdMap< uint, Pointer< StdMap< uint, Pointer< ResourceHandle > > > >* map, int idx )
{
if( map == null )
{
return;
}
using var tree = ImRaii.TreeNode( $"({( uint )category:D2}) {category} - {map->Count}###{( uint )category}" );
using var tree = ImRaii.TreeNode( $"({( uint )category:D2}) {category} (Ex {idx}) - {map->Count}###{( uint )category}_{idx}" );
if( tree )
{
SetTableWidths();