crosshair looks a little better

This commit is contained in:
in0finite 2020-05-01 22:26:30 +02:00
parent c661e13b88
commit 5fb94bf22d

View file

@ -58,7 +58,7 @@ namespace SanAndreasUnity.UI {
int originalWidth = originalTex.width;
int originalHeight = originalTex.height;
Texture2D tex = new Texture2D(originalWidth * 2, originalHeight * 2);
Texture2D tex = new Texture2D(originalWidth * 2, originalHeight * 2, TextureFormat.ARGB32, false, true);
// bottom left
for (int i = 0; i < originalWidth; i++)
@ -96,7 +96,7 @@ namespace SanAndreasUnity.UI {
}
}
tex.Apply(true, true);
tex.Apply(false, true);
Weapon.CrosshairTexture = tex;
this.crosshairImage.enabled = true;