mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-25 01:49:19 +01:00
Add SelectTab event, update new clientstructs.
This commit is contained in:
parent
78e772dad9
commit
5fcb07487e
10 changed files with 79 additions and 159 deletions
|
|
@ -5,8 +5,6 @@ using Dalamud.Plugin;
|
|||
using ImGuiNET;
|
||||
using OtterGui;
|
||||
using OtterGui.Raii;
|
||||
using Penumbra.Api.Enums;
|
||||
using Penumbra.Mods;
|
||||
using Penumbra.Services;
|
||||
using Penumbra.UI.Classes;
|
||||
using Penumbra.UI.Tabs;
|
||||
|
|
@ -24,12 +22,6 @@ public sealed class ConfigWindow : Window
|
|||
private ConfigTabBar _configTabs = null!;
|
||||
private string? _lastException;
|
||||
|
||||
public void SelectTab(TabType tab)
|
||||
=> _configTabs.SelectTab = tab;
|
||||
|
||||
public void SelectMod(Mod mod)
|
||||
=> _configTabs.Mods.SelectMod = mod;
|
||||
|
||||
public ConfigWindow(PerformanceTracker tracker, DalamudPluginInterface pi, Configuration config, ValidityChecker checker,
|
||||
TutorialService tutorial)
|
||||
: base(GetLabel(checker))
|
||||
|
|
@ -41,14 +33,14 @@ public sealed class ConfigWindow : Window
|
|||
|
||||
RespectCloseHotkey = true;
|
||||
tutorial.UpdateTutorialStep();
|
||||
IsOpen = _config.DebugMode;
|
||||
IsOpen = _config.DebugMode;
|
||||
}
|
||||
|
||||
public void Setup(Penumbra penumbra, ConfigTabBar configTabs)
|
||||
{
|
||||
_penumbra = penumbra;
|
||||
_configTabs = configTabs;
|
||||
SelectTab(_config.SelectedTab);
|
||||
_penumbra = penumbra;
|
||||
_configTabs = configTabs;
|
||||
_configTabs.SelectTab = _config.SelectedTab;
|
||||
}
|
||||
|
||||
public override bool DrawConditions()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue