mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-13 12:14:17 +01:00
All Linebreaks to LF.
This commit is contained in:
parent
82dff6be25
commit
de8930c574
32 changed files with 1356 additions and 1356 deletions
|
|
@ -2,45 +2,45 @@ using System.Numerics;
|
|||
using ImGuiNET;
|
||||
|
||||
namespace Penumbra.UI
|
||||
{
|
||||
public partial class SettingsInterface
|
||||
{
|
||||
private partial class SettingsMenu
|
||||
{
|
||||
private const string PenumbraSettingsLabel = "PenumbraSettings";
|
||||
|
||||
{
|
||||
public partial class SettingsInterface
|
||||
{
|
||||
private partial class SettingsMenu
|
||||
{
|
||||
private const string PenumbraSettingsLabel = "PenumbraSettings";
|
||||
|
||||
private static readonly Vector2 MinSettingsSize = new( 800, 450 );
|
||||
private static readonly Vector2 MaxSettingsSize = new( 69420, 42069 );
|
||||
|
||||
private readonly SettingsInterface _base;
|
||||
public readonly TabSettings _settingsTab;
|
||||
public readonly TabImport _importTab;
|
||||
public readonly TabBrowser _browserTab;
|
||||
public readonly TabInstalled _installedTab;
|
||||
public readonly TabEffective _effectiveTab;
|
||||
|
||||
public SettingsMenu(SettingsInterface ui)
|
||||
{
|
||||
_base = ui;
|
||||
_settingsTab = new(_base);
|
||||
_importTab = new(_base);
|
||||
_browserTab = new();
|
||||
_installedTab = new(_base);
|
||||
_effectiveTab = new(_base);
|
||||
}
|
||||
|
||||
private static readonly Vector2 MaxSettingsSize = new( 69420, 42069 );
|
||||
|
||||
private readonly SettingsInterface _base;
|
||||
public readonly TabSettings _settingsTab;
|
||||
public readonly TabImport _importTab;
|
||||
public readonly TabBrowser _browserTab;
|
||||
public readonly TabInstalled _installedTab;
|
||||
public readonly TabEffective _effectiveTab;
|
||||
|
||||
public SettingsMenu(SettingsInterface ui)
|
||||
{
|
||||
_base = ui;
|
||||
_settingsTab = new(_base);
|
||||
_importTab = new(_base);
|
||||
_browserTab = new();
|
||||
_installedTab = new(_base);
|
||||
_effectiveTab = new(_base);
|
||||
}
|
||||
|
||||
#if DEBUG
|
||||
private const bool DefaultVisibility = true;
|
||||
private const bool DefaultVisibility = true;
|
||||
#else
|
||||
private const bool DefaultVisibility = false;
|
||||
#endif
|
||||
public bool Visible = DefaultVisibility;
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
#endif
|
||||
public bool Visible = DefaultVisibility;
|
||||
|
||||
public void Draw()
|
||||
{
|
||||
if( !Visible )
|
||||
return;
|
||||
|
||||
return;
|
||||
|
||||
ImGui.SetNextWindowSizeConstraints( MinSettingsSize, MaxSettingsSize );
|
||||
#if DEBUG
|
||||
var ret = ImGui.Begin( _base._plugin.PluginDebugTitleStr, ref Visible );
|
||||
|
|
@ -49,12 +49,12 @@ namespace Penumbra.UI
|
|||
#endif
|
||||
if( !ret )
|
||||
return;
|
||||
|
||||
ImGui.BeginTabBar( PenumbraSettingsLabel );
|
||||
|
||||
|
||||
ImGui.BeginTabBar( PenumbraSettingsLabel );
|
||||
|
||||
_settingsTab.Draw();
|
||||
_importTab.Draw();
|
||||
|
||||
_importTab.Draw();
|
||||
|
||||
if( !_importTab.IsImporting() )
|
||||
{
|
||||
_browserTab.Draw();
|
||||
|
|
@ -65,8 +65,8 @@ namespace Penumbra.UI
|
|||
}
|
||||
|
||||
ImGui.EndTabBar();
|
||||
ImGui.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
ImGui.End();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue