Skip to content

Commit

Permalink
-Fixed Dead Delirium Monsters having its icons stay after death
Browse files Browse the repository at this point in the history
-Added ToggleNode in Options for "Avoid"-Text above Volatile Icons
  • Loading branch information
Arecurius0 committed Mar 17, 2020
1 parent 555c5a8 commit 42f80ee
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 3 additions & 5 deletions DeliriumIcon.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ public override string ToString()
}
public void Update(Entity entity, IconsBuilderSettings settings, Dictionary<string, Size2> modIcons)
{
Show = () => Entity.IsAlive;

MainTexture = new HudTexture("Icons.png");
if (!_HasIngameIcon) MainTexture = new HudTexture("Icons.png");

Expand Down Expand Up @@ -58,7 +60,7 @@ public void Update(Entity entity, IconsBuilderSettings settings, Dictionary<stri
if (entity.Path.StartsWith(pathstring + "BloodBag", StringComparison.Ordinal))
{
MainTexture.UV = SpriteHelper.GetUV(MapIconsIndex.RedFlag);
Text = "Avoid";
Text = settings.DeliriumText.Value? "Avoid" : "";
}
else if(entity.Path.StartsWith(pathstring + "EggFodder", StringComparison.Ordinal))
{
Expand All @@ -77,10 +79,6 @@ public void Update(Entity entity, IconsBuilderSettings settings, Dictionary<stri
MainTexture.Size = settings.SizeEntityProximityMonsterIcon;
Hidden = () => false;

Show = () =>
{
return Entity.IsAlive;
};
Priority = IconPriority.Medium;
return;
}
Expand Down
4 changes: 3 additions & 1 deletion IconsBuilder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\PoeHelper\Plugins\Compiled\IconsBuilder\</OutputPath>
<OutputPath>..\0Compiles\IconsBuilder\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down Expand Up @@ -52,6 +52,7 @@
<ItemGroup>
<Reference Include="ExileCore">
<HintPath>..\..\PoEHelper\ExileCore.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="JM.LinqFaster, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\..\ExileApi\packages\LinqFaster.1.0.0\lib\net461\JM.LinqFaster.dll</HintPath>
Expand All @@ -60,6 +61,7 @@
<Reference Include="Microsoft.CSharp" />
<Reference Include="MoreLinq">
<HintPath>..\..\ExileApi\packages\morelinq.3.2.0\lib\net451\MoreLinq.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="mscorlib" />
<Reference Include="Serilog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10">
Expand Down
2 changes: 2 additions & 0 deletions IconsBuilderSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ public class IconsBuilderSettings : ISettings
public RangeNode<int> MultiThreadingWhenEntityMoreThan { get; set; } = new RangeNode<int>(10, 1, 200);
public ToggleNode HidePlayers { get; set; } = new ToggleNode(false);
public ToggleNode HideMinions { get; set; } = new ToggleNode(false);
public ToggleNode DeliriumText { get; set; } = new ToggleNode(false);
public ToggleNode Enable { get; set; } = new ToggleNode(true);

}
}

0 comments on commit 42f80ee

Please sign in to comment.