Krom Posted December 5, 2008 Posted December 5, 2008 Hello, topic says it all. Imagine a black square with white circle inside - a simple png. Can I make that circle to be not the white one, but fully transparent, like you could see what's below the black square through this circle window. Of course I need this while in-Game.. Any suggestions are more than welcome.
Gamesnert Posted December 5, 2008 Posted December 5, 2008 For as far as I know you can only do that with an image editing program. I don't think there's a MTA command for it, and I also don't think it should be necessary.
50p Posted December 5, 2008 Posted December 5, 2008 Hello, topic says it all. Imagine a black square with white circle inside - a simple png. Can I make that circle to be not the white one, but fully transparent, like you could see what's below the black square through this circle window. Of course I need this while in-Game.. Any suggestions are more than welcome. In image editing software you can save .png with transparency. That transparency is used in CEGUI (gui library used in MTA) too, so you can do that. In Photoshop you can just cut out that circle and it should be transparent (white and grey squares) when you save it.
SpZ Posted December 6, 2008 Posted December 6, 2008 http://development.mtasa.com/index.php? ... uiSetAlpha
Krom Posted December 6, 2008 Author Posted December 6, 2008 50p, thankyou. Exactly, I was only interested does MTA "understand" the transparency of images and is able to display them correctly.
50p Posted December 7, 2008 Posted December 7, 2008 They are supported but in some images you will see a "white border" in places of transparency.
darkdreamingdan Posted December 8, 2008 Posted December 8, 2008 Images without an 1:1 aspect ratio have troubles with white borders as 50p said. Stick to 1:1 (e.g. 50x50) and you'll be fine.
eXo|Flobu Posted December 8, 2008 Posted December 8, 2008 too small resolutions with ratio 1:1 have trouble with the white border too but they have a small filesize.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now