Log in to reply
 

[C# | HELP] UI.DrawTexture() hide outside from alpha channel



  • Hello guys, how can I make a texture hide when outside another texture (container), this is what I obviously get if I move it:
    0_1501939566175_upload-c3700866-2a01-4af5-a385-317a3bc20119

    I tried to do a workaround and got something like this by changing the size, but it's pretty bad
    0_1501939492719_upload-e44f345f-c7a7-4d48-8688-c87a328f70b7



  • @lorizz12 Perhaps you should separate it into 3 textures: the background, the rectangle part of the foreground texture, and the triangle part of the foreground texture.
    Do your workaround (changing the size), but instead of changing the whole foreground texture's size, only change the rectangle texture's size, then move the triangle texture so it's still attached to the rectangle. This way the triangle doesn't look horrible when stretched.



  • @Jitnaught the problem is that if I stretch it more the height bugs out and goes out by 2-3 pixels


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.