-
Legendary
Originally Posted by
Saico
Tried to increase Order value in one plugin to OVERlay another one (That has less order number) and still got overlayed, am I missing something ?
That problem can occur if one of the plugins uses GroundLabelDecorator, because it is not drawn immediately: all GroundLabelDecorator from all plugins are added to a queue and are drawn by GroundLabelDecoratorPainterPlugin.cs whose Order is int.MaxValue.
You can try to fix it using Order = int.MaxValue; in the plugin that you want to see about the others.
Originally Posted by
Saico
I still tried Order = int.MaxValue; but no success
I don't know a simple way to do it that doesn't involve recoding part of the plugin . Aassigning a lower value to "Order" in GroundLabelDecoratorPainterPlugin.cs could be a problematic option.
Last edited by RNN; 05-26-2020 at 05:29 PM.
-
Member
Hello. Is there a way to add Bastions Of Will (Focus/Restrain) ?
-
Member
Please tell me what the line is for: if (RuleCalculatorMe.PaintInfoList.Count != 0)
-
Member
I just redid some of it, but I'm not sure what's right:
foreach(var p in players) {
var pt = p.PortraitUiElement.Rectangle;
if (p.IsMe) {
if (MeScreenPaint) {
RuleCalculatorMe.SizeMultiplier = SizeMultiplier;
RuleCalculatorMe.CalculatePaintInfo(p);
if (RuleCalculatorMe.PaintInfoList.Count != 0)
BuffPainter.PaintHorizontalCenter(
RuleCalculatorMe.PaintInfoList,
0,
Hud.Window.Size.Height * 0.5f + Hud.Window.Size.Height * MeScreenOffsetY,
Hud.Window.Size.Width,
RuleCalculatorMe.StandardIconSize,
RuleCalculatorMe.StandardIconSpacing
);
}
if (MePortraitPaint) {
RuleCalculatorMe.SizeMultiplier = PortraitSizeMultiplier;
RuleCalculatorMe.CalculatePaintInfo(p);
if (RuleCalculatorMe.PaintInfoList.Count != 0)
BuffPainter.PaintHorizontal(
RuleCalculatorMe.PaintInfoList,
pt.Right,
pt.Top + pt.Height * AllPortraitOffsetY,
RuleCalculatorMe.StandardIconSize,
0
);
}
}
-
Member
Hello. Is there a way to add WD mundunugu 4set buff?
-
Active Member
Originally Posted by
antofll
Hello. Is there a way to add WD mundunugu 4set buff?
Add to: Plugins\Gigi\BuffRuleFactory.cs
Code:
if (pwr == 484129){ // Mundunugu 4pc
yield return new BuffRule(pwr) { IconIndex = 1, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false };
}
And Add to: Plugins\Gigi\PartyBuffConfigPlugin.cs
-
Post Thanks / Like - 1 Thanks
antofll (1 members gave Thanks to Jembo for this useful post)
-
Member
Thanks. very useful information.