mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
55 lines
No EOL
1.7 KiB
C#
55 lines
No EOL
1.7 KiB
C#
using ImGuiNET;
|
|
|
|
namespace Penumbra.UI
|
|
{
|
|
public partial class SettingsInterface
|
|
{
|
|
private class TabInstalled
|
|
{
|
|
private const string LabelTab = "Installed Mods";
|
|
|
|
private readonly SettingsInterface _base;
|
|
public readonly Selector Selector;
|
|
public readonly ModPanel ModPanel;
|
|
|
|
public TabInstalled( SettingsInterface ui )
|
|
{
|
|
_base = ui;
|
|
Selector = new Selector( _base );
|
|
ModPanel = new ModPanel( _base, Selector );
|
|
}
|
|
|
|
private static void DrawNoModsAvailable()
|
|
{
|
|
ImGui.Text( "You don't have any mods :(" );
|
|
ImGuiCustom.VerticalDistance( 20f );
|
|
ImGui.Text( "You'll need to install them first by creating a folder close to the root of your drive (preferably an SSD)." );
|
|
ImGui.Text( "For example: D:/ffxiv/mods/" );
|
|
ImGui.Text( "And pasting that path into the settings tab and clicking the 'Rediscover Mods' button." );
|
|
ImGui.Text( "You can return to this tab once you've done that." );
|
|
}
|
|
|
|
public void Draw()
|
|
{
|
|
var ret = ImGui.BeginTabItem( LabelTab );
|
|
if( !ret )
|
|
{
|
|
return;
|
|
}
|
|
|
|
if( _base._plugin.ModManager.Mods != null )
|
|
{
|
|
Selector.Draw();
|
|
ImGui.SameLine();
|
|
ModPanel.Draw();
|
|
}
|
|
else
|
|
{
|
|
DrawNoModsAvailable();
|
|
}
|
|
|
|
ImGui.EndTabItem();
|
|
}
|
|
}
|
|
}
|
|
} |