Piorun Posted January 22, 2016 Share Posted January 22, 2016 Hi, I made simple function which allows to create rounded rectangle. Really simple. 3 parameters: width, height, rounding (0-100%). More on GitHub. Have fun . Image: Image1 Link: https://github.com/Pioruniasty/MTA_rounded_rectangle Link to comment
NewbProgramming Posted January 23, 2016 Share Posted January 23, 2016 Useful thank you. Link to comment
MAB Posted January 26, 2016 Share Posted January 26, 2016 Very nice... what about positions? X , Y ... ?? Link to comment
Overkillz Posted January 26, 2016 Share Posted January 26, 2016 In this case, I recommend you use dxDrawImage, because if u want to play with alpha effects, it will suppost you some problems. Also, u can use dxDrawRectangle --& dxDrawImageSection It could be the best way. Link to comment
Piorun Posted January 26, 2016 Author Share Posted January 26, 2016 (edited) This function only creates texture (like dxCreateTexture), not drawing it. What are you talking about alpha? It's working fine. I will edit this func to work with setting color (via HEX). Also i will try to add some extra parametr like which corner should be rounded etc. Have fun . Edited January 27, 2016 by Guest Link to comment
DBY Posted January 27, 2016 Share Posted January 27, 2016 Nice work, posibly I use this. U're the f*cking boss. 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