-
Active Member
BuffPainter - UseAlternateStyleWhenBuffIsAlmostGone How to enable ?
In version 19.7.29.0 the changelog mentions "added: UseAlternateStyleWhenBuffIsAlmostGone, AlmostGoneTimeLeftFont, AlmostGoneBorderBrush to BuffPainter (disabled by default)".
I managed to enable it within the BuffPainter.cs file in default folder by changing line 40 "UseAlternateStyleWhenBuffIsAlmostGone = null;" to "UseAlternateStyleWhenBuffIsAlmostGone = 0.1;
I would like to put it in User/PluginEnablerOrDisablerPlugin.cs file.
I tried putting in:
Hud.RunOnPlugin<BuffPainter>(plugin => {
UseAlternateStyleWhenBuffIsAlmostGone = 0.1;
});
But I'm getting exceptions :confused:
-
Contributor
BuffPainter is not a plugin but helper class to render buffs on screen.
You are trying to configure it like a plugin.
You need to configure plugin(s) that use BuffPainter to get the effect.
MiniMapLeftBuffListPlugin, PlayerBottomBuffListPlugin, PlayerLeftBuffListPlugin etc. has those.
Example.
Code:
Hud.RunOnPlugin<PlayerBottomBuffListPlugin>(plugin => {
plugin.BuffPainter.UseAlternateStyleWhenBuffIsAlmostGone = 0.25;
});
But the problem with UseAlternateStyleWhenBuffIsAlmostGone is that it gives same percentage to all buffs that makes it kind of unusable IMHO.
You should be able to control individual buffs separately.
Last edited by JarJarD3; 08-08-2019 at 01:04 AM.
Reason: Added example and comment.
-
Post Thanks / Like - 1 Thanks
Jembo (1 members gave Thanks to JarJarD3 for this useful post)
-
Active Member
Thanks JarJarD3 for the quick response and explanation! I do agree it would be amazing to be able to control individual buffs