mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-31 21:03:48 +01:00
Deal with multiple resource containers in resource manager.
This commit is contained in:
parent
842b1c1fe5
commit
0b2b0d1beb
4 changed files with 20 additions and 13 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue