mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-20 06:47:46 +01:00
Wow, I accidentally the whole UI
This commit is contained in:
parent
dd8c910597
commit
651c7410ac
87 changed files with 7571 additions and 7280 deletions
|
|
@ -11,22 +11,28 @@ public class PenumbraWindowSystem : IDisposable
|
|||
{
|
||||
private readonly UiBuilder _uiBuilder;
|
||||
private readonly WindowSystem _windowSystem;
|
||||
private readonly FileDialogService _fileDialog;
|
||||
public readonly ConfigWindow Window;
|
||||
public readonly PenumbraChangelog Changelog;
|
||||
|
||||
public PenumbraWindowSystem(DalamudPluginInterface pi, PenumbraChangelog changelog, ConfigWindow window, LaunchButton _,
|
||||
ModEditWindow editWindow)
|
||||
public PenumbraWindowSystem(DalamudPluginInterface pi, Configuration config, PenumbraChangelog changelog, ConfigWindow window,
|
||||
LaunchButton _,
|
||||
ModEditWindow editWindow, FileDialogService fileDialog)
|
||||
{
|
||||
_uiBuilder = pi.UiBuilder;
|
||||
_fileDialog = fileDialog;
|
||||
Changelog = changelog;
|
||||
Window = window;
|
||||
_windowSystem = new WindowSystem("Penumbra");
|
||||
_windowSystem.AddWindow(changelog.Changelog);
|
||||
_windowSystem.AddWindow(window);
|
||||
_windowSystem.AddWindow(editWindow);
|
||||
|
||||
_uiBuilder.OpenConfigUi += Window.Toggle;
|
||||
_uiBuilder.Draw += _windowSystem.Draw;
|
||||
_uiBuilder.OpenConfigUi += Window.Toggle;
|
||||
_uiBuilder.Draw += _windowSystem.Draw;
|
||||
_uiBuilder.Draw += _fileDialog.Draw;
|
||||
_uiBuilder.DisableGposeUiHide = !config.HideUiInGPose;
|
||||
_uiBuilder.DisableCutsceneUiHide = !config.HideUiInCutscenes;
|
||||
_uiBuilder.DisableUserUiHide = !config.HideUiWhenUiHidden;
|
||||
}
|
||||
|
||||
public void ForceChangelogOpen()
|
||||
|
|
@ -36,5 +42,6 @@ public class PenumbraWindowSystem : IDisposable
|
|||
{
|
||||
_uiBuilder.OpenConfigUi -= Window.Toggle;
|
||||
_uiBuilder.Draw -= _windowSystem.Draw;
|
||||
_uiBuilder.Draw -= _fileDialog.Draw;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue