Is there a way to configure Primal Ancients decorator ?
I was unable to find it in the ItemPlugin.cs
I want to customize unidentified primal ancient appearance on the ground and minimap.
Thanks in advance
Is there a way to configure Primal Ancients decorator ?
I was unable to find it in the ItemPlugin.cs
I want to customize unidentified primal ancient appearance on the ground and minimap.
Thanks in advance
The InventoryAndStashplugin.cs has this snippet:
Hopefully this helps point you in the right directionCode:private void DrawItemAncientRank(IItem item, System.Drawing.RectangleF rect) { if (!AncientRankEnabled) return; var ancientRank = item.AncientRank; if (ancientRank >= 1) { var caldesannRank = CaldesannRankEnabled ? item.CaldesannRank : 0; var ancientRankText = ancientRank == 1 ? "A" : "P"; var font = ancientRank == 1 ? AncientRankFont : PrimalRankFont; var text = ancientRankText + (caldesannRank > 0 ? ("+" + caldesannRank.ToString("D", CultureInfo.InvariantCulture)) : ""); var textLayout = font.GetTextLayout(text); font.DrawText(textLayout, rect.Right - rv / 15.0f - textLayout.Metrics.Width, rect.Bottom - rv / 35.0f - textLayout.Metrics.Height); } }
Code:foreach (var item in Hud.Game.Items) { var ancientRank = item.AncientRank; if (ancientRank >= 1) { (paint here) } }
Maybe i didn't make myself clear - my english as bad as code skills )
My goal is to create new part of code like this one in ItemPlugin.cs:
But for primal - not for ancientsCode:AncientDecorator = new WorldDecoratorCollection( new GroundCircleDecorator(Hud) { Brush = Hud.Render.CreateBrush(192, 255, 140, 0, -3), Radius = 2.2f, RadiusTransformator = new StandardPingRadiusTransformator(Hud, 500), }, new GroundLabelDecorator(Hud) { BackgroundBrush = Hud.Render.CreateBrush(160, 255, 140, 0, 0), BorderBrush = Hud.Render.CreateBrush(160, 0, 0, 0, -1), TextFont = Hud.Render.CreateFont("tahoma", 7, 255, 0, 0, 0, true, false, false) }, new MapShapeDecorator(Hud) { ShapePainter = new RotatingTriangleShapePainter(Hud), Brush = Hud.Render.CreateBrush(255, 255, 120, 0, 3), ShadowBrush = Hud.Render.CreateBrush(96, 0, 0, 0, 1), Radius = 11, RadiusTransformator = new StandardPingRadiusTransformator(Hud, 333), } );
In your last post you have everything you need to write a plugin to do exactly this :P . Give me just a moment and I will show you what I mean
Plugins/Psycho/PrimalAncientDecoratorPlugin.cs
I have not tested this but I do not see why it should not work. The decorator needs some tweaking to get it to look like you want.
Yes primal ancient is 2 instead of 1 and I am glad you are enjoying them!
Feel free to edit that plugin as you like.
about primal ancients. Since I have not a single piece, it is hard to add any decorators. Also hard to think about what to add, what would looks nice.
What do you thing? How should I change the ground nameplate of primals?
No need to add anything fancy. I think you should do the same as with normal ancients, except the background color could be red for primals (regardless if its a set or normal legendary)
Edit: I am talking about ground label background colors, since I have everything else disabled.
Hide the Rum! --> Default theme customization 101 <--
In my config i have added light yellow border for ancients and light green for set ancients
i'm going to add red border to both primals
also i've made triangle marker on minimap red too, cuz by default u can't see if it is ancient or primal on minimap due it has same color as blizzard's stars appearing on minimap when it dropped for the first time
tbh, i don't get one yet ^^
Hide the Rum! --> Default theme customization 101 <--