diff --git a/GraphicsManager/GraphicsManager.csproj b/GraphicsManager/GraphicsManager.csproj
index abd5d9d..f631e3b 100644
--- a/GraphicsManager/GraphicsManager.csproj
+++ b/GraphicsManager/GraphicsManager.csproj
@@ -10,7 +10,7 @@
False
https://git.jacobtech.com/JacobTech.com/GraphicsManager
git
- 1.1.1-alpha35
+ 1.1.1-alpha36
@@ -34,7 +34,7 @@
-
+
diff --git a/GraphicsManager/Interfaces/IRenderObject.cs b/GraphicsManager/Interfaces/IRenderObject.cs
index 2c9c5c1..eced5aa 100755
--- a/GraphicsManager/Interfaces/IRenderObject.cs
+++ b/GraphicsManager/Interfaces/IRenderObject.cs
@@ -13,6 +13,8 @@ public interface IRenderObject
public void ForceDistanceUpdate(IParent parent);
public BetterContextMenu? ContextMenu { get; set; }
public ObjectAnchor Anchor { get; set; }
+
+ public Vector4i Margins { get; set; }
public bool MouseInside { get; set; }
public bool IgnoreHover { get; set; }
public bool BlockDraw { get; set; }
diff --git a/GraphicsManager/Objects/Core/LabelBase.cs b/GraphicsManager/Objects/Core/LabelBase.cs
index de45ac2..479a5a0 100644
--- a/GraphicsManager/Objects/Core/LabelBase.cs
+++ b/GraphicsManager/Objects/Core/LabelBase.cs
@@ -398,6 +398,8 @@ public class LabelBase : ILabel
Loaded = false;
Visible = false;
}
+
+ public Vector4i Margins { get; set; } = new();
public event Func? SizeChanged;
diff --git a/GraphicsManager/Objects/Core/Texture.cs b/GraphicsManager/Objects/Core/Texture.cs
index f64ef6c..671c2b5 100755
--- a/GraphicsManager/Objects/Core/Texture.cs
+++ b/GraphicsManager/Objects/Core/Texture.cs
@@ -3,6 +3,7 @@ using OpenTK.Mathematics;
using OpenTK.Windowing.Desktop;
using SharpFont;
using SixLabors.ImageSharp;
+using SixLabors.ImageSharp.Formats;
using SixLabors.ImageSharp.Formats.Bmp;
using SixLabors.ImageSharp.Formats.Gif;
using SixLabors.ImageSharp.Formats.Jpeg;
@@ -45,6 +46,11 @@ public class Texture
PreferContiguousImageBuffers = true
};
+ private static DecoderOptions NewCFG = new DecoderOptions()
+ {
+ Configuration = imgcfg,
+ };
+
public int handel;
public Vector2i? RawSize = null;
public int Location { get; set; } = 1;
@@ -79,7 +85,7 @@ public class Texture
{
try
{
- Image image = Image.Load(imgcfg, File);
+ Image image = Image.Load(NewCFG, File);
image.Mutate(x =>
{
x.Flip(FlipMode.Vertical);
@@ -102,7 +108,7 @@ public class Texture
{
try
{
- Image image = Image.Load(imgcfg, File);
+ Image image = Image.Load(NewCFG, File);
image.Mutate(x =>
{
x.Flip(FlipMode.Vertical);
diff --git a/GraphicsManager/Objects/Rectangle.cs b/GraphicsManager/Objects/Rectangle.cs
index 766262b..a9ce30b 100755
--- a/GraphicsManager/Objects/Rectangle.cs
+++ b/GraphicsManager/Objects/Rectangle.cs
@@ -126,6 +126,8 @@ public class Rectangle : ITextureObject
{
DrawBase();
}
+
+ public Vector4i Margins { get; set; } = new();
public virtual MouseCursor HoverMouse { get; set; } = MouseCursor.Default;
public List SubHitBoxes { get; } = new();