-
Member
Originally Posted by
prrovoss
looks nice so far. do you think you could add an option to not display the inCombat or rift statistics? for me personally only the rift statistics are interesting and hiding everything else would really help keeping track of them^^.
This is done. You have a new option in Customize
Code:
// show statistics 1= Rift, 2=Combat, 3=Both default=3
Hud.GetPlugin<BuffStatistics>().ShowData = 3;
-
Savvy ? 🐒
The code is mostly correct.
But wth use 'm_' prefix?
In C++ in can be convenient but in C# it's considered a bad pratice.
-
Contributor
how would you add new buffs? the ones you added seem to work but as soon as im trying to add my own, they dont show up.
example:
Hud.GetPlugin<BuffStatistics>().AddBuff(403464, 1, "Gogok");
this is also not working, it says it has no buffs defined:
Code:
Hud.RunOnPlugin<Grischu.BuffStatistic.BuffStatistics>(plugin =>
{
//plugin.Enabled = false;
plugin.AddBuff(403464, 1, "Gogok");
plugin.AddBuff(359583, 1, "Focus");
plugin.AddBuff(359583, 2, "Restraint");
plugin.XPos = Hud.Window.Size.Width * 0.8f;
plugin.YPos = Hud.Window.Size.Height * 0.5f;
});
if i comment out the gogok line, it adds the focus and restraint buffs. so as soon as i add gogok, the plugin dies somehow.
Last edited by prrovoss; 04-04-2017 at 08:39 AM.
-
Savvy ? 🐒
Originally Posted by
prrovoss
if i comment out the gogok line, it adds the focus and restraint buffs. so as soon as i add gogok, the plugin dies somehow.
Put 'PreferLocalizedName' to false, his logic has a flaw :
PHP Code:
name = Hud.Game.Me.Powers.GetBuff(id).SnoPower.NameLocalized;
'Hud.Game.Me.Powers.GetBuff(id)' is null without having the buff.
-
Post Thanks / Like - 1 Thanks
prrovoss (1 members gave Thanks to JackCeparou for this useful post)
-
Contributor
btw you should also make the columns a bit wider because thats how it looks for me:
edit
thats what im using now:
private float[,] m_ColWidth = new float[,] { { 150, 0 }, { 75, 150 }, { 50, 225 }, { 75, 275 }, { 40, 360 }};
and it looks like this:
oh and btw, the percentages seem a bit off, >100%
Last edited by prrovoss; 04-04-2017 at 09:41 AM.
-
Member
I was away for a view day, i will look into it and fix it as soon as possible.