mirror of
https://github.com/GTA-ASM/SanAndreasUnity
synced 2025-02-16 21:08:28 +00:00
crosshair looks a little better
This commit is contained in:
parent
c661e13b88
commit
5fb94bf22d
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue