drk Posted February 15, 2012 Share Posted February 15, 2012 I'm trying to make an anim to a dx but I can't because mta dx functions don't "use variables". I tried to use race dx library but it don't work. It is anyway to do this or use a custom font on a simple gui label? Link to comment
JR10 Posted February 15, 2012 Share Posted February 15, 2012 What do you mean doesn't support variables? It does, you can use variables in dxtext, just like GUI and just like strings(outputChatBox). Link to comment
JR10 Posted February 15, 2012 Share Posted February 15, 2012 Yes, you can use variables with it. Link to comment
Castillo Posted February 15, 2012 Share Posted February 15, 2012 JR10: I think he meant's that DX drawing functions doesn't return elements, like this: myText = dxDrawText() Link to comment
Castillo Posted February 15, 2012 Share Posted February 15, 2012 Well, you can always re-make the DX functions and make them return elements like GUI. Link to comment
drk Posted February 16, 2012 Author Share Posted February 16, 2012 It's possible to use custom font on GUI Labels? Link to comment
Castillo Posted February 16, 2012 Share Posted February 16, 2012 You can create your own GUI fonts with this function: guiCreateFont ([url=https://wiki.multitheftauto.com/wiki/GuiCreateFont]https://wiki.multitheftauto.com/wiki/GuiCreateFont[/url]) Link to comment
drk Posted February 16, 2012 Author Share Posted February 16, 2012 Oh Thanks, I forget this function. I remember only dxCreateFont LOL Link to comment
Castillo Posted February 16, 2012 Share Posted February 16, 2012 You're welcome. P.S: To make a DX animation you can create a GUI with alpha 0 and animate it with Client animation library by arc_ Then use the position, size for your DX. Link to comment
karlis Posted February 18, 2012 Share Posted February 18, 2012 gui elem with 0alpha will still be limited with gui functions if using default, have problems triggering changes when something is changed, so better just use custom classes, they're easy to make. Link to comment
drk Posted February 18, 2012 Author Share Posted February 18, 2012 gui elem with 0alpha will still be limited with gui functions if using default, have problems triggering changes when something is changed, so better just use custom classes, they're easy to make. I think it will not be easy for me I'm using GUI Labels / Image functions, the best for noobs 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