mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 18:27:24 +01:00
Applied a slightly expanded .editorconfig to all files, checked the changes and did some simple refactoring-suggestions.
This commit is contained in:
parent
b307a787db
commit
801d9e24cf
38 changed files with 1438 additions and 1055 deletions
|
|
@ -4,25 +4,25 @@ namespace Penumbra.UI
|
|||
{
|
||||
public partial class SettingsInterface
|
||||
{
|
||||
private partial class TabInstalled
|
||||
private class TabInstalled
|
||||
{
|
||||
private const string LabelTab = "Installed Mods";
|
||||
|
||||
private readonly SettingsInterface _base;
|
||||
public readonly Selector _selector;
|
||||
public readonly ModPanel _modPanel;
|
||||
public readonly Selector Selector;
|
||||
public readonly ModPanel ModPanel;
|
||||
|
||||
public TabInstalled(SettingsInterface ui)
|
||||
public TabInstalled( SettingsInterface ui )
|
||||
{
|
||||
_base = ui;
|
||||
_selector = new(_base);
|
||||
_modPanel = new(_base, _selector);
|
||||
_base = ui;
|
||||
Selector = new Selector( _base );
|
||||
ModPanel = new ModPanel( _base, Selector );
|
||||
}
|
||||
|
||||
private void DrawNoModsAvailable()
|
||||
private static void DrawNoModsAvailable()
|
||||
{
|
||||
ImGui.Text( "You don't have any mods :(" );
|
||||
ImGuiCustom.VerticalDistance(20f);
|
||||
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." );
|
||||
|
|
@ -33,20 +33,22 @@ namespace Penumbra.UI
|
|||
{
|
||||
var ret = ImGui.BeginTabItem( LabelTab );
|
||||
if( !ret )
|
||||
return;
|
||||
|
||||
if (_base._plugin.ModManager.Mods != null)
|
||||
{
|
||||
_selector.Draw();
|
||||
return;
|
||||
}
|
||||
|
||||
if( _base._plugin.ModManager.Mods != null )
|
||||
{
|
||||
Selector.Draw();
|
||||
ImGui.SameLine();
|
||||
_modPanel.Draw();
|
||||
ModPanel.Draw();
|
||||
}
|
||||
else
|
||||
{
|
||||
DrawNoModsAvailable();
|
||||
}
|
||||
|
||||
ImGui.EndTabItem();
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue