mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 08:59:18 +01:00
Everything's a service.
This commit is contained in:
parent
2670ba52c1
commit
dd8c910597
45 changed files with 2155 additions and 2212 deletions
|
|
@ -7,7 +7,7 @@ using OtterGui;
|
|||
using OtterGui.Raii;
|
||||
using OtterGui.Widgets;
|
||||
using Penumbra.Api.Enums;
|
||||
using Penumbra.Interop.Services;
|
||||
using Penumbra.Interop.Services;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.Services;
|
||||
using Penumbra.UI.Classes;
|
||||
|
|
@ -21,6 +21,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
private readonly ModFileSystemSelector _selector;
|
||||
private readonly ModPanel _modPanel;
|
||||
public readonly ModEditWindow ModEditPopup;
|
||||
private readonly Configuration _config;
|
||||
|
||||
private readonly SettingsTab _settingsTab;
|
||||
private readonly CollectionsTab _collectionsTab;
|
||||
|
|
@ -35,11 +36,13 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
|
||||
public void SelectMod(Mod mod)
|
||||
=> _selector.SelectByValue(mod);
|
||||
|
||||
public ConfigWindow(CommunicatorService communicator, StartTracker timer, FontReloader fontReloader, Penumbra penumbra, ResourceWatcher watcher)
|
||||
|
||||
public ConfigWindow(Configuration config, CommunicatorService communicator, StartTracker timer, FontReloader fontReloader,
|
||||
Penumbra penumbra, ResourceWatcher watcher)
|
||||
: base(GetLabel())
|
||||
{
|
||||
_penumbra = penumbra;
|
||||
_config = config;
|
||||
_resourceWatcher = watcher;
|
||||
|
||||
ModEditPopup = new ModEditWindow(communicator);
|
||||
|
|
@ -66,6 +69,7 @@ public sealed partial class ConfigWindow : Window, IDisposable
|
|||
MaximumSize = new Vector2(4096, 2160),
|
||||
};
|
||||
UpdateTutorialStep();
|
||||
IsOpen = _config.DebugMode;
|
||||
}
|
||||
|
||||
private ReadOnlySpan<byte> ToLabel(TabType type)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue