mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Added customizable (user-input) list of replaced items.
This commit is contained in:
parent
8e87e2d1cf
commit
c472fdd8cf
2 changed files with 17 additions and 5 deletions
|
|
@ -13,5 +13,8 @@ namespace Penumbra.Models
|
|||
public string Website { get; set; }
|
||||
|
||||
public Dictionary< string, string > FileSwaps { get; } = new();
|
||||
|
||||
public List<string> ChangedItems { get; set; } = new();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -623,18 +623,27 @@ namespace Penumbra.UI
|
|||
|
||||
|
||||
ImGui.TextWrapped( _selectedMod.Mod.Meta.Description ?? "" );
|
||||
|
||||
ImGui.BeginTabBar( "PenumbraPluginDetails" );
|
||||
if ( (_selectedMod.Mod.Meta.ChangedItems?.Count ?? 0 ) > 0)
|
||||
{
|
||||
if( ImGui.BeginTabItem( "Changed Items" ) )
|
||||
{
|
||||
ImGui.SetNextItemWidth( -1 );
|
||||
if( ImGui.ListBoxHeader( "###", AutoFillSize ) )
|
||||
foreach(var item in _selectedMod.Mod.Meta.ChangedItems)
|
||||
ImGui.Selectable( item );
|
||||
ImGui.ListBoxFooter();
|
||||
ImGui.EndTabItem();
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.BeginTabBar( "PenumbraPluginDetails" );
|
||||
if( ImGui.BeginTabItem( "Files" ) )
|
||||
{
|
||||
ImGui.SetNextItemWidth( -1 );
|
||||
if( ImGui.ListBoxHeader( "##", AutoFillSize ) )
|
||||
{
|
||||
foreach( var file in _selectedMod.Mod.ModFiles )
|
||||
{
|
||||
ImGui.Selectable( file.FullName );
|
||||
}
|
||||
}
|
||||
|
||||
ImGui.ListBoxFooter();
|
||||
ImGui.EndTabItem();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue