public void PaintTopInGame(ClipState clipState)
{
if (Hud.Render.UiHidden) return;
if (!Hud.Game.Me.Powers.UsedSkills.Any(s => s.SnoPower.Sno == 108506)) return;
if (clipState == ClipState.BeforeClip)
{
var w = Hud.Window.Size.Width * 0.08f;
var h = Hud.Window.Size.Height * 0.06f;
var x = Hud.Window.Size.Width * 0.5f - w/2;
var y = Hud.Window.Size.Height * 0.70f + Hud.Window.Size.Height * 0.01f;
var AttackSpeed = Hud.Game.Me.Offense.AttackSpeed;
if(AttackSpeed <= 2.380)
{
AttackSpeedDecorator.BackgroundBrush = CHANNELBackgroundBrush;
AttackSpeedDecorator.Paint(x, y, w, h, "CHANNEL " + AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s");
}
if (AttackSpeed >= 2.381 && AttackSpeed <= 3.400)
{
AttackSpeedDecorator.BackgroundBrush = DELAYBackgroundBrush;
AttackSpeedDecorator.Paint(x, y, w, h, "DELAY " + AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s");
}
if (AttackSpeed >= 3.401 && AttackSpeed <= 4.32
{
AttackSpeedDecorator.BackgroundBrush = CHANNELBackgroundBrush;
AttackSpeedDecorator.Paint(x, y, w, h, "CHANNEL " + AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s");
}
if (AttackSpeed >= 4.329)
{
AttackSpeedDecorator.BackgroundBrush = DELAYBackgroundBrush;
AttackSpeedDecorator.Paint(x, y, w, h, "DELAY " + AttackSpeed.ToString("F2", CultureInfo.InvariantCulture) + "/s");
}
I included a counter like the one you wrote in another post and it will also show an additional circle of radius 15y the last 2 seconds (configurable time) .
In the original plugin the decorators are really maintained for 11 seconds although the damage is only applied for 10, in addition it is only possible to have 3 active but it can show up to 5 because they take a while to disappear.
Hud.RunOnPlugin<glq.SpiritBarragePhantasmPlugin>(plugin =>
{
plugin.ShowOthers = true; // Also show for other players.
plugin.ShowCounter = true; // Counter
plugin.ShowExplosionCircle = true; // Show additional circle the LAST "CircleSeconds"
plugin.CircleSeconds = 2; // 1 .. 5 , It will also be verified (in the second plugin only) that you use The Barber
} );
Last edited by RNN; 05-21-2020 at 07:31 PM.
Reason: Attachment
I updated the previous two plugins:
Phantasm timer fixed. The timer will be hidden if the phantasm is not on the screen
Circle for Countdown clock looks small at high resolutions, fixed. Edit the file and change radius_countdown to your liking
I have used the same procedure to also fix the timer of an old code for the worm hole plugin: plugins\RNN\WormHolePlugin.cs
Could someone explain how to change the colours of these circles??? The light blue is pretty hard to distinguish during a GR on my screen. I know that these type of codes (150, 0, 128, 255, 3) stand for colours, just don't know which ones to alter in order to get a colour that works for me.