Member
window size in the Load method instead of the Paint method
using this plugin ( DarkerDiablo3Plugin )
How can I change Paint method
my resoultion 3840 * 1600
======================================================================
namespace Turbo.Plugins.Resu
{
public class DarkerDiablo3Plugin : BasePlugin, IInGameTopPainter
{
public int maxX { get; set; }
public int maxY { get; set; }
public TopLabelDecorator DarknessDecorator { get; set; }
public DarkerDiablo3Plugin()
{
Enabled = true;
}
public override void Load(IController hud)
{
base.Load(hud);
maxX = Hud.Window.Size.Width;
maxY = Hud.Window.Size.Height;
DarknessDecorator = new TopLabelDecorator(Hud)
{
BackgroundBrush = Hud.Render.CreateBrush(85, 0, 18, 52, 0),
TextFont = Hud.Render.CreateFont("Segoe UI Light", 7, 250, 255, 255, 255, false, false, true), // it doesn't work without that line
};
}
These ads disappear when you log in.