any good place to show up the coe rotation instead of default one
any good place to show up the coe rotation instead of default one
instead of voice notification, it's good to provide message pop up notification for alternative.
Sometime it is difficult to heard the voice
First of all, thanks for the work, but there is one problem: when playing together, “Attack” is pronounced constantly, like a damaged gramophone record, while playing a solo, everything is fine (regardless of 0.1, -1)
If you want to disable speak, I did it this way in your Customize() method:
Code:Hud.RunOnPlugin<DavPlayer.DAV_COE>(plugin => { plugin.VolumeMultiplier = -1.0; var keys = plugin.TimeRule.Keys.ToList(); plugin.TimeRule.Clear(); foreach (var key in keys) { plugin.TimeRule.Add(key, new Tuple<double, string, int>(0.0, "", -2)); } });
update version 4
- add text message during yellow/red bar (user only)
- add flashing effect (requested by JarJar3D)
how to customize to display message only (ie no voice)
edit the file
// attack time before max bonus | the message | role of your character | message type
// Role : -2 no speak
// -1 speak all the time except in town
// 0 speak all the time in GR
// 1 speak as trash killer in GR
// 2 speak as RGK in GR
// Message type : -1 none
// 0 text
// 1 sound
// 2 sound + text
TimeRule = new Dictionary<HeroClass, Tuple<double, string, int, int>> {
{HeroClass.Barbarian, new Tuple<double, string, int, int>(4.0, "Attack", 0, 2)},
{HeroClass.Monk, new Tuple<double, string, int, int>(4.0, "Attack", 0, 2)},
{HeroClass.Necromancer, new Tuple<double, string, int, int>(1.0, "Charge", 2, 2)},
{HeroClass.Wizard, new Tuple<double, string, int, int>(4.0, "Attack", 1, 2)},
{HeroClass.WitchDoctor, new Tuple<double, string, int, int>(4.0, "Attack", 0, 2)},
{HeroClass.Crusader, new Tuple<double, string, int, int>(4.0, "Attack", 0, 2)},
{HeroClass.DemonHunter, new Tuple<double, string, int, int>(1.0, "Attack", 0, 2)}
};
how to customize to disable coe icon ? I want only time bar
I like DAV_COE ty
NOT tested, try adding into your customization
If no succeed, add // in front of the code COEPainter.PaintHorizontal(CoeRuleCalculator.PaintInfoList, x, y, CoeRuleCalculator.StandardIconSize, 0); (line 179)Code:Hud.RunOnPlugin<DAV_COE>(plugin => { plugin.COEPainter.Enabled = false; });
Add new variable (line 32):
Fix paint code Ilines 240-241 -> 240-244:Code:public bool DrawCOE { get; set; } = true;
Optinally fix time output (lines 268-269):Code:if (DrawCOE) { COEPainter.PaintHorizontal(CoeRuleCalculator.PaintInfoList, x, y, CoeRuleCalculator.StandardIconSize, 0); BackgroundBrush.DrawRectangle(x, y - barH, barW, barH); }
And customization:Code:var layout = CoeTimeFont.GetTextLayout(timeWait > 0 ? timeWait.ToString("F1", CultureInfo.InvariantCulture) : CoeMaxIndicator); CoeTimeFont.DrawText(layout, x + barW + CoeRuleCalculator.StandardIconSpacing, y - barH);
Code:plugin.DrawCOE = false; plugin.CoeBarH = 20.0f;
I prefer to show the default rotation coe buff next to each player portrait
How to disable dav coe shown on each player portrait ?