Retainers can now be disabled if they're under the minimum level (but not enabled)
This commit is contained in:
parent
8f6b38a3e8
commit
a3489c1633
@ -1,6 +1,6 @@
|
|||||||
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
<Project Sdk="Dalamud.NET.Sdk/9.0.2">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<Version>5.5</Version>
|
<Version>5.6</Version>
|
||||||
<OutputPath>dist</OutputPath>
|
<OutputPath>dist</OutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
@ -175,9 +175,9 @@ internal sealed class RetainersTab : ITab
|
|||||||
.OrderBy(x => x.DisplayOrder)
|
.OrderBy(x => x.DisplayOrder)
|
||||||
.ThenBy(x => x.RetainerContentId))
|
.ThenBy(x => x.RetainerContentId))
|
||||||
{
|
{
|
||||||
ImGui.BeginDisabled(retainer.Level < ConfigWindow.MinLevel);
|
ImGui.BeginDisabled(retainer is { Managed: false, Level: < ConfigWindow.MinLevel });
|
||||||
|
|
||||||
bool managed = retainer is { Managed: true, Level: >= ConfigWindow.MinLevel };
|
bool managed = retainer.Managed;
|
||||||
|
|
||||||
IDalamudTextureWrap? icon = _iconCache.GetIcon(62000 + retainer.Job);
|
IDalamudTextureWrap? icon = _iconCache.GetIcon(62000 + retainer.Job);
|
||||||
if (icon != null)
|
if (icon != null)
|
||||||
|
Loading…
Reference in New Issue
Block a user