-
Legendary
You must delete line 29:
using Turbo.Plugins.Arkahr;
Also the 30 is like this:
Hud.RunOnPlugin<Arkahr.ConventionOfElementsBar>(plugin=> {
I recommend you use notepad ++ to edit the .cs files
If instead of
plugin.setBar(600, 520, 100, 20);
do you write
plugin.setBar(Hud.Window.Size.Width * 0.476f, Hud.Window.Size.Height * 0.54f, Hud.Window.Size.Width * 0.0467f, Hud.Window.Size.Width * 0.011f);
the bar will appear below the character
and if you write
plugin.setBar(Hud.Window.Size.Width * 0.52f, Hud.Window.Size.Height * 0.46f, Hud.Window.Size.Width * 0.0125f, Hud.Window.Size.Width * 0.016f);
Simulate a vertical bar
Last edited by RNN; 04-19-2019 at 01:39 PM.
-
Post Thanks / Like - 1 Thanks
hurrikane (1 members gave Thanks to RNN for this useful post)
-
Member
okay thank you very much i changed it but ofc i get exception again I deleted Line 29 and change Line 30
Btw that code i only copied from page 1 of this thread i have no idea what i did there
2019.04.19 21:13:41.947 19.3.26.0 error while initializing plugins
2019.04.19 21:13:41.950 19.3.26.0 C:\Users\Shadow\Desktop\Diablo 3\Plugins\User\PluginEnablerOrDisablerPlugin.cs(30,24) : error CS0234: The type or namespace name 'ConventionOfElementsBarS' does not exist in the namespace 'Turbo.Plugins.Arkahr' (are you missing an assembly reference?)
thanks in advance
Maybe my mistake is the "S" behind ConventionOfElementsBar if i understand the exception correct but i better wait for your answer
Last edited by hurrikane; 04-19-2019 at 02:19 PM.
-
Member
okay i removed the "S" from ConventionOfElementsBar but the timer is gone from the coe rotation?
thanks in advance
Last edited by hurrikane; 04-19-2019 at 02:36 PM.
-
Legendary
change false to true in
plugin.ShowTimeLeftNumbers = false; //by default = true
-
Post Thanks / Like - 1 Thanks
hurrikane (1 members gave Thanks to RNN for this useful post)
-
Member
works perfect thank you as always have a nice evening/day wherever you live
-
Member
Is possibile have the full raw code with the bar under the character for people not expert in costumization?
-
Member
i have this exception
hi all i m using this code in turbohud/plugins/user/pluginenablerordisablerpluging.cs
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// *.txt files are not loaded automatically by TurboHUD
// you have to change this file's extension to .cs to enable it
// ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
using Turbo.Plugins.Default;
namespace Turbo.Plugins.User
{
public class PluginEnablerOrDisablerPlugin : BasePlugin, ICustomizer
{
public PluginEnablerOrDisablerPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
}
// "Customize" methods are automatically executed after every plugin is loaded.
// So these methods can use Hud.GetPlugin<class> to access the plugin instances' public properties (like decorators, Enabled flag, parameters, etc)
// Make sure you test the return value against null!
public void Customize()
{
Hud.RunOnPlugin<ConventionOfElementsBar>(plugin=> {
plugin.setBar(Hud.Window.Size.Width * 0.476f,
Hud.Window.Size.Height * 0.54f, Hud.Window.Size.Width * 0.0467f,
Hud.Window.Size.Width * 0.011f); //sets user prefered bar position and dimensions to setBar(x, y, width, height)
plugin.ShowTimeLeftNumbers = false; //by default = true
plugin.Opacity = 0.7f; //by default = 1.0f
//plugin.TimeLeftFont = Hud.Render.CreateFont("tahoma", 8, 255, 255, 255, 255, false, false, 255, 0, 0, 0, true);
//plugin.BackgroundBrush = Hud.Render.CreateBrush(255, 0, 0, 0, 0);
//plugin.CooldownBrush = Hud.Render.CreateBrush(255, 127, 127, 127, 0);
//plugin.ElementBrush.Arcane = Hud.Render.CreateBrush(255, 159, 58, 232, 0);
//plugin.ElementBrush.Cold = Hud.Render.CreateBrush(255, 97, 193, 244, 0);
//plugin.ElementBrush.Fire = Hud.Render.CreateBrush(255, 182, 49, 49, 0);
//plugin.ElementBrush.Holy = Hud.Render.CreateBrush(255, 255, 208, 68, 0);
//plugin.ElementBrush.Lightning = Hud.Render.CreateBrush(255, 4, 32, 135, 0);
//plugin.ElementBrush.Physical = Hud.Render.CreateBrush(255, 85, 80, 66, 0);
//plugin.ElementBrush.Poison = Hud.Render.CreateBrush(255, 80, 226, 36, 0);
});
Hud.RunOnPlugin<Gigi.EliteBarPlugin>(plugin => {
plugin.DisplayAffix.Add(MonsterAffix.Frozen, "Frozen");
plugin.DisplayAffix.Add(MonsterAffix.Wormhole, "WormHole");
plugin.DisplayAffix.Add(MonsterAffix.Illusionist, "Illusion");
plugin.DisplayAffix.Add(MonsterAffix.Juggernaut, "Jugger");
plugin.DisplayAffix.Add(MonsterAffix.Waller, "Waller");
plugin.DisplayAffix.Add(MonsterAffix.Arcane, "Arcane");
plugin.DisplayAffix.Add(MonsterAffix.HealthLink, "HealthLink");
plugin.DisplayAffix.Add(MonsterAffix.Desecrator, "Desec");
plugin.DisplayAffix.Add(MonsterAffix.Shielding, "Shield");
plugin.DisplayAffix.Add(MonsterAffix.Molten, "Molten");
plugin.DisplayAffix.Add(MonsterAffix.FrozenPulse, "Pulse");
plugin.DisplayAffix.Add(MonsterAffix.Thunderstorm, "Thunder");
plugin.DisplayAffix.Add(MonsterAffix.FireChains, "Chains");
plugin.DisplayAffix.Add(MonsterAffix.Teleporter, "Teleport");
plugin.DisplayAffix.Add(MonsterAffix.Mortar, "Mortar");
plugin.DisplayAffix.Add(MonsterAffix.Horde, "Horde");
} );
}
}
}
and i have this exception
2021.01.03 13:06:50.533 20.12.16.0 error while initializing plugins
2021.01.03 13:06:50.540 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(1,1) : error CS1022: Type or namespace definition, or end-of-file expected
2021.01.03 13:09:30.771 20.12.16.0 error while initializing plugins
2021.01.03 13:09:30.772 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(1,1) : error CS1022: Type or namespace definition, or end-of-file expected
2021.01.03 13:13:28.603 20.12.16.0 error while initializing plugins
2021.01.03 13:13:28.604 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(1,1) : error CS1022: Type or namespace definition, or end-of-file expected
2021.01.03 13:16:33.696 20.12.16.0 namespace mismatch in plugin file: 'C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs': namespace should be this: 'Turbo.Plugins.User
2021.01.03 13:20:40.556 20.12.16.0 error while initializing plugins
2021.01.03 13:20:40.556 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(30,17) : error CS0246: The type or namespace name 'ConventionOfElementsBar' could not be found (are you missing a using directive or an assembly reference?)
2021.01.03 13:52:23.488 20.12.16.0 error while initializing plugins
2021.01.03 13:52:23.488 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(29,17) : error CS0246: The type or namespace name 'ConventionOfElementsBarS' could not be found (are you missing a using directive or an assembly reference?)
2021.01.03 13:52:53.569 20.12.16.0 error while initializing plugins
2021.01.03 13:52:53.569 20.12.16.0 C:\Users\Utente\Desktop\diablo 3\turbohud\Plugins\User\PluginEnablerOrDisablerPlugin.cs(29,17) : error CS0246: The type or namespace name 'ConventionOfElementsBar' could not be found (are you missing a using directive or an assembly reference?)