Hello!
I updated my TH today and now it do not work!!
like I always do, I did overwrite the new Plugins with the old. But this time there are exceptions :
2019.03.26 17:52:02.883 19.3.26.0 error while initializing plugins
2019.03.26 17:52:02.897 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(6,1 : error CS0101: The namespace 'Turbo.Plugins.Default' already contains a definition for 'UiHiddenPlayerSkillBarPlugin'
2019.03.26 17:52:02.898 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(12,16) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called '.ctor' with the same parameter types
2019.03.26 17:52:02.898 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(17,30) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called 'Load' with the same parameter types
2019.03.26 17:52:02.899 19.3.26.0 C:\Users\.....\OneDrive\Desktop\TH\Plugins\Default\SkillBars\UiHiddenPortraitSki llBarPlugin.cs(31,21) : error CS0111: Type 'UiHiddenPlayerSkillBarPlugin' already defines a member called 'PaintTopInGame' with the same parameter types
In the old TH there was " UiHiddenPortraitSkillBarPlugin.cs"
using SharpDX;
namespace Turbo.Plugins.Default
{
public class UiHiddenPortraitSkillBarPlugin : BasePlugin, IInGameTopPainter
{
public SkillPainter SkillPainter { get; set; }
public float Ratio { get; set; }
public UiHiddenPlayerSkillBarPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
SkillPainter = new SkillPainter(Hud, true)
{
TextureOpacity = 1.0f,
EnableSkillDpsBar = false,
EnableDetailedDpsHint = false,
CooldownFont = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
};
Ratio = 0.55f;
}
public void PaintTopInGame(ClipState clipState)
{
if (!Hud.Render.UiHidden) return;
if (clipState != ClipState.BeforeClip) return;
var size = 55f / 1200.0f * Hud.Window.Size.Height * Ratio;
foreach (var player in Hud.Game.Players)
{
var portraitRect = player.PortraitUiElement.Rectangle;
foreach (var skill in player.Powers.CurrentSkills)
{
var index = skill.Key <= ActionKey.RightSkill ? (int)skill.Key + 4 : (int)skill.Key - 2;
var x = portraitRect.Right + size * index;
var y = portraitRect.Top + portraitRect.Height * 0.21f;
var rect = new RectangleF(x, y, size, size);
SkillPainter.Paint(skill, rect);
}
}
}
}
}
in the new TH ther is also "UiHiddenPlayerSkillBarPlugin.cs"
using SharpDX;
namespace Turbo.Plugins.Default
{
public class UiHiddenPlayerSkillBarPlugin : BasePlugin, IInGameTopPainter
{
public SkillPainter SkillPainter { get; set; }
public float Ratio { get; set; } = 0.55f;
public UiHiddenPlayerSkillBarPlugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
SkillPainter = new SkillPainter(Hud, true)
{
TextureOpacity = 1.0f,
EnableSkillDpsBar = false,
EnableDetailedDpsHint = false,
CooldownFont = Hud.Render.CreateFont("arial", 8, 255, 255, 255, 255, true, false, 255, 0, 0, 0, true),
};
}
public void PaintTopInGame(ClipState clipState)
{
if (!Hud.Render.UiHidden) return;
if (clipState != ClipState.BeforeClip) return;
var size = 55f / 1200.0f * Hud.Window.Size.Height * Ratio;
foreach (var player in Hud.Game.Players)
{
var portraitRect = player.PortraitUiElement.Rectangle;
foreach (var skill in player.Powers.CurrentSkills)
{
var index = skill.Key <= ActionKey.RightSkill ? (int)skill.Key + 4 : (int)skill.Key - 2;
var x = portraitRect.Right + size * index;
var y = portraitRect.Top + portraitRect.Height * 0.21f;
var rect = new RectangleF(x, y, size, size);
SkillPainter.Paint(skill, rect);
}
}
}
}
}
I tried some ways, remove one -no result, remove the other - no result,....
What can I do?!