Hi Guys,
Haven't been able to play D3 lately, real-life was too busy
This is just a quick update to make the necessary adjustment to THUD's new 7.2 plugin system
Forum went down before I was able to learn the stuff that got changed in 7.2 so this was like coding blindfolded
[C#] BuffSideBarPlugin - Pastebin.com
(Save to "THUD\plugins\ZX" directory)
To-do : Rewrite the code to use VerticalTopLabelList, someday!
Description from the old forum :
This is a plugin to add Buff buttons as a bar at the right of the screen. The button will light up when the respective buff SNO is active.
For example, I use it to know whether I have my Nemesis Bracer equipped, or a Flying Dragon is active or not, or whether I am standing inside the Oculus Ring and the damage buff is active.
To modify the list of buffs, just modify these part of the code :
Code:
BuffBarsList.Add(new IBuffBarsList("NB", "Nemesis Bracers", 318820, -1));
BuffBarsList.Add(new IBuffBarsList("GW", "Goldwrap", 318875, 1));
BuffBarsList.Add(new IBuffBarsList("OR", "Oculus Ring", 402461, 2));
BuffBarsList.Add(new IBuffBarsList("IS", "Inner Sanctuary", 317076, -1));
BuffBarsList.Add(new IBuffBarsList("FD", "Flying Dragon", 246562, 1));
BuffBarsList.Add(new IBuffBarsList("SM", "Swiftmount", 359537, -1));
//BuffBarsList.Add(new IBuffBarsList("BP", "Broken Promises", 402462, 2));
//BuffBarsList.Add(new IBuffBarsList("CE", "Convention of Elements", 430674, 5)); //1 Arcane, 2 Cold, 3 Fire, 4 Holy, 5 Lightning, 6 Physical, 7 Poison
The order is :
1. Shorthand (what actually displayed on the buttons)
2. Description (long name when your mouse cursor hovers over the button)
3. Buff SNO
4. Buff IconIndex
I am a C# noob and I know virtually nothing about optimizations, so any constructive input is much appreciated. Bug reports too, I'll fix it if I can.
Special thanks to KillerJohn and prrovoss , and all the THUD community for the code hints, I definitely stole some of your codes
HTH
Update 2017-07-30
SNOs for Necromancer's Command Skeleton and Dayntee Binding
Code:
BuffBarsList.Add(new IBuffBarsList("CS", "Command Skeleton", 453801, -1, HeroClass.Necromancer));
BuffBarsList.Add(new IBuffBarsList("DB", "Dayntee Binding DR", 476689, 1, HeroClass.Necromancer));
Update 2017-08-04
Updated the code for a new feature, Horizontal Alignment
When enabled, the buff bar will move to be like this :