-
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.
-
Member
please tell me how to insert into:
ISnoPower[] onAll = {
};
And here
ISnoPower[] onMe = {
};
Shrine Power
Shrine.Conduit
Shrine Channeling
Shrine Shield
Shrine Speed
in the BuffRulesFactory.cs I didn't find them
-
Member
I did it like this,
add to BuffRulesFactory.cs:
if (pwr == Hud.Sno.SnoPowers.Generic_PagesBuffDamage.Sno){
yield return new BuffRule(pwr) { IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false}; //Power
}
if (pwr == Hud.Sno.SnoPowers.Generic_PagesBuffElectrifiedTieredRift.Sno){
yield return new BuffRule(pwr) { IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false}; //Conduit
}
if (pwr == Hud.Sno.SnoPowers.Generic_PagesBuffInfiniteCasting.Sno){
yield return new BuffRule(pwr) { IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false}; //Channeling
}
if (pwr == Hud.Sno.SnoPowers.Generic_PagesBuffInvulnerable.Sno){
yield return new BuffRule(pwr) { IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false}; //Shield
}
if (pwr == Hud.Sno.SnoPowers.Generic_PagesBuffRunSpeed.Sno){
yield return new BuffRule(pwr) { IconIndex = 0, MinimumIconCount = 1, ShowTimeLeft = true, ShowStacks = false}; //Speed
}
add to PluginEnablerOrDisablerPlugin:
Hud.RunOnPlugin<Gigi.PartyBuffPlugin>(plugin =>
{
ISnoPower[] onWiz = {};
ISnoPower[] onMonk = {};
ISnoPower[] onWD = {};
ISnoPower[] onBarb = {};
ISnoPower[] onCrus = {};
ISnoPower[] onDH = {};
ISnoPower[] onAll = {
Hud.Sno.SnoPowers.Generic_PagesBuffDamage,
Hud.Sno.SnoPowers.Generic_PagesBuffElectrifiedTieredRift,
Hud.Sno.SnoPowers.Generic_PagesBuffInfiniteCasting,
Hud.Sno.SnoPowers.Generic_PagesBuffInvulnerable,
Hud.Sno.SnoPowers.Generic_PagesBuffRunSpeed,
};
ISnoPower[] onMe = {
};
plugin.DisplayOnAll(onAll);
plugin.DisplayOnMe(onMe);
plugin.DisplayOnClassExceptMe(HeroClass.Wizard, onWiz);
plugin.DisplayOnClassExceptMe(HeroClass.Monk, onMonk);
plugin.DisplayOnClassExceptMe(HeroClass.Barbarian, onBarb);
plugin.DisplayOnClassExceptMe(HeroClass.WitchDoctor, onWD);
plugin.DisplayOnClassExceptMe(HeroClass.DemonHunter, onDH);
plugin.DisplayOnClassExceptMe(HeroClass.Crusader, onCrus);
});
-
Member
please tell me how to make it green:
TimeLeftFont = Hud.Render.CreateFont("tahoma", 7, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true),
I made it green, but it's hard to read portraits, I did it this way (white, different font, bigger, fatter):
TimeLeftFont = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
Last edited by RawHulk; 05-14-2024 at 05:20 AM.
-
Member
help me, how can this be removed001.jpg