Krom Posted December 5, 2008 Share 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. Link to comment
Gamesnert Posted December 5, 2008 Share 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. Link to comment
50p Posted December 5, 2008 Share 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. Link to comment
SpZ Posted December 6, 2008 Share Posted December 6, 2008 http://development.mtasa.com/index.php? ... uiSetAlpha Link to comment
Krom Posted December 6, 2008 Author Share 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. Link to comment
50p Posted December 7, 2008 Share Posted December 7, 2008 They are supported but in some images you will see a "white border" in places of transparency. Link to comment
darkdreamingdan Posted December 8, 2008 Share 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. Link to comment
eXo|Flobu Posted December 8, 2008 Share Posted December 8, 2008 too small resolutions with ratio 1:1 have trouble with the white border too but they have a small filesize. Link to comment
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