-
Member
[REQUEST] Crusader Aegis of Valor 2p buff icon
Could someone make a simple plugin that shows Crusader's Aegis of Valor set 2 pieces buff as an icon in the top of the screen with the number of the buff stacks shown on the buff icon. I know there 's the buff icon but it's sometimes hard to quickly see how many stacks I have if there are too many buff icons in the bottom of the screen. Thanks!
-
Legendary
code to add in User\PluginEnablerOrDisablerPlugin.cs :
You have 4 options depending on where you want to show it (Top/Bottom/Left/Right):
Code:
Hud.RunOnPlugin<PlayerTopBuffListPlugin>(plugin =>{
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.PositionOffset = -0.20f;
plugin.RuleCalculator.Rules.Add(new BuffRule(483643) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_948
} );
Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin => {
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.PositionOffset = 0.04f;
plugin.RuleCalculator.Rules.Add(new BuffRule(483643) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_948
} );
Code:
Hud.RunOnPlugin<PlayerLeftBuffListPlugin>(plugin => {
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.PositionOffsetX = -0.14f;
plugin.PositionOffsetH = 0.875f;
plugin.RuleCalculator.Rules.Add(new BuffRule(483643) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_948
} );
Code:
Hud.RunOnPlugin<PlayerRightBuffListPlugin>(plugin => {
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.PositionOffsetX = 0.14f;
plugin.PositionOffsetH = 0.875f;
plugin.RuleCalculator.Rules.Add(new BuffRule(483643) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_948
} );
By changing PositionOffset / PositionOffsetX / PositionOffsetH you can further adjust the position
It's funny that by modifying the offset you could simulate 4 PlayerBottomBuffListPlugin at different heights
Last edited by RNN; 11-29-2019 at 07:28 AM.
-
Post Thanks / Like - 1 Thanks
Gilavar (1 members gave Thanks to RNN for this useful post)
-
Member
Thanks a lot. The top one version is what I wanted and it works great! One more thing - is it possible to add CoE buff icon just above my character so there are 2 buff icons - AoV and CoE (for cruz only).
-
Legendary
Code:
Hud.TogglePlugin<PlayerTopBuffListPlugin>(true);
Hud.RunOnPlugin<PlayerTopBuffListPlugin>(plugin =>{
plugin.BuffPainter.ShowTimeLeftNumbers = true;
plugin.PositionOffset = -0.20f;
plugin.RuleCalculator.Rules.Add(new BuffRule(483643) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = true }); //P67_ItemPassive_Unique_Ring_948
plugin.RuleCalculator.Rules.Add(new BuffRule(430674) { IconIndex = null, MinimumIconCount = 1, ShowTimeLeft = true }); //ConventionOfElements
} );
The coe would appear in all the characters, (you have to make a separate complement for what you want), or you could change the true to false when you play with other characters
Last edited by RNN; 11-29-2019 at 08:07 AM.
-
Post Thanks / Like - 2 Thanks
-
Member
Amazing RNN ! how did u find that valor code? I tried to find that code very long times but there wasn't.. so I thought it was not updated to hud yet.
Anyway I have one question. what <IconIndex = 1, MinimumIconCount = 1> these two means. iconindex and minimumiconcount.
can you explain it plz ?
-
Member
Thank you so much for this plugin, was about to request it myself
However, I'm new to THUD and for some reason, I cannot get it to work. Nothing is showing on my screen. I mean THUD is running fine, along with some other plugins I installed (Coe in middle screen, PlayerArc and some others). So, please if it's possible to help me out regarding this issue I would really appreciate it.
-
Legendary
MinimunIconCount is the minimum number of stacks required to display the icon, normally it will be 1.
For the rest of the questions I advise you to read this thread where there is a link to the plugin that I made to extract that data.
Track buffs like epiphany and mantra actives
-
Legendary
Originally Posted by
frozenjo
Thank you so much for this plugin, was about to request it myself
However, I'm new to THUD and for some reason, I cannot get it to work. Nothing is showing on my screen. I mean THUD is running fine, along with some other plugins I installed (Coe in middle screen, PlayerArc and some others). So, please if it's possible to help me out regarding this issue I would really appreciate it.
It is not a plugin, it is a code to configure an existing plugin.
The code must be inserted in the plugins\User\PluginEnablerOrDisablerPlugin.cs file, in the "Customize section".
If you have never edited that file, download this file ( PluginEnablerOrDisablerPlugin.cs ) and place it in plugins\User\
-
Member
Is there any way to make the icons bigger?
Where can i find API docs?
-
Contributor
no API docs, but you can get information from
TurboHUD\interfaces
some class & structure in
TurboHUD\plugins\Default
-
Member
For some reason this code doesn't work anymore Have somthing changed?