mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-24 01:19:22 +01:00
Even almoster...
This commit is contained in:
parent
65bd1d1b52
commit
8dd681bdda
19 changed files with 2625 additions and 1865 deletions
|
|
@ -14,17 +14,30 @@ namespace Penumbra.UI;
|
|||
public sealed partial class ConfigWindow : Window, IDisposable
|
||||
{
|
||||
private readonly Penumbra _penumbra;
|
||||
public readonly ModFileSystemSelector Selector;
|
||||
private readonly SettingsTab _settingsTab;
|
||||
private readonly ModFileSystemSelector _selector;
|
||||
private readonly ModPanel _modPanel;
|
||||
private readonly CollectionsTab _collectionsTab;
|
||||
private readonly EffectiveTab _effectiveTab;
|
||||
private readonly DebugTab _debugTab;
|
||||
private readonly ResourceTab _resourceTab;
|
||||
|
||||
public ConfigWindow( Penumbra penumbra )
|
||||
: base( GetLabel() )
|
||||
{
|
||||
_penumbra = penumbra;
|
||||
Selector = new ModFileSystemSelector( _penumbra.ModFileSystem, new HashSet< Mod2 >() ); // TODO
|
||||
Dalamud.PluginInterface.UiBuilder.DisableGposeUiHide = true;
|
||||
_penumbra = penumbra;
|
||||
_settingsTab = new SettingsTab( this );
|
||||
_selector = new ModFileSystemSelector( _penumbra.ModFileSystem, new HashSet< Mod2 >() ); // TODO
|
||||
_modPanel = new ModPanel( this );
|
||||
_collectionsTab = new CollectionsTab( this );
|
||||
_effectiveTab = new EffectiveTab();
|
||||
_debugTab = new DebugTab( this );
|
||||
_resourceTab = new ResourceTab( this );
|
||||
|
||||
Dalamud.PluginInterface.UiBuilder.DisableGposeUiHide = true;
|
||||
Dalamud.PluginInterface.UiBuilder.DisableCutsceneUiHide = true;
|
||||
Dalamud.PluginInterface.UiBuilder.DisableUserUiHide = true;
|
||||
RespectCloseHotkey = true;
|
||||
Dalamud.PluginInterface.UiBuilder.DisableUserUiHide = true;
|
||||
RespectCloseHotkey = true;
|
||||
SizeConstraints = new WindowSizeConstraints()
|
||||
{
|
||||
MinimumSize = new Vector2( 800, 600 ),
|
||||
|
|
@ -36,18 +49,18 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
{
|
||||
using var bar = ImRaii.TabBar( string.Empty, ImGuiTabBarFlags.NoTooltip );
|
||||
SetupSizes();
|
||||
DrawSettingsTab();
|
||||
_settingsTab.Draw();
|
||||
DrawModsTab();
|
||||
DrawCollectionsTab();
|
||||
_collectionsTab.Draw();
|
||||
DrawChangedItemTab();
|
||||
DrawEffectiveChangesTab();
|
||||
DrawDebugTab();
|
||||
DrawResourceManagerTab();
|
||||
_effectiveTab.Draw();
|
||||
_debugTab.Draw();
|
||||
_resourceTab.Draw();
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
{
|
||||
Selector.Dispose();
|
||||
_selector.Dispose();
|
||||
}
|
||||
|
||||
private static string GetLabel()
|
||||
|
|
@ -55,10 +68,12 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
? "Penumbra###PenumbraConfigWindow"
|
||||
: $"Penumbra v{Penumbra.Version}###PenumbraConfigWindow";
|
||||
|
||||
private Vector2 _defaultSpace;
|
||||
private Vector2 _inputTextWidth;
|
||||
|
||||
private void SetupSizes()
|
||||
{
|
||||
_inputTextWidth = new Vector2( 350f * ImGuiHelpers.GlobalScale, 0 );
|
||||
_defaultSpace = new Vector2( 0, 10 * ImGuiHelpers.GlobalScale );
|
||||
_inputTextWidth = new Vector2( 350f * ImGuiHelpers.GlobalScale, 0 );
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue