diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs new file mode 100644 index 000000000..b9a9beaf9 --- /dev/null +++ b/Dalamud/Interface/Internal/Windows/SelfTest/AgingSteps/AetheryteListAgingStep.cs @@ -0,0 +1,48 @@ +using Dalamud.Game.ClientState.Aetherytes; +using Dalamud.Utility; +using ImGuiNET; + +namespace Dalamud.Interface.Internal.Windows.SelfTest.AgingSteps +{ + /// + /// Test setup for the Aetheryte List. + /// + internal class AetheryteListAgingStep : IAgingStep + { + private int index = 0; + + /// + public string Name => "Test AetheryteList"; + + /// + public SelfTestStepResult RunStep() + { + var list = Service.Get(); + + ImGui.Text("Checking aetheryte list..."); + + if (this.index == list.Length - 1) + { + return SelfTestStepResult.Pass; + } + + var aetheryte = list[this.index]; + this.index++; + + if (aetheryte == null) + { + return SelfTestStepResult.Waiting; + } + + Util.ShowObject(aetheryte); + + return SelfTestStepResult.Waiting; + } + + /// + public void CleanUp() + { + // ignored + } + } +} diff --git a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs index d97fad7bc..4fd2762fd 100644 --- a/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs +++ b/Dalamud/Interface/Internal/Windows/SelfTest/SelfTestWindow.cs @@ -28,6 +28,7 @@ namespace Dalamud.Interface.Internal.Windows.SelfTest new EnterTerritoryAgingStep(148, "Central Shroud"), new ActorTableAgingStep(), new FateTableAgingStep(), + new AetheryteListAgingStep(), new ConditionAgingStep(), new ToastAgingStep(), new TargetAgingStep(),