drk Posted February 15, 2012 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? EPT Team Server Development: 0% Learning C++ | C++ is amazing
JR10 Posted February 15, 2012 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). Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
drk Posted February 15, 2012 Author Posted February 15, 2012 dxDrawText? EPT Team Server Development: 0% Learning C++ | C++ is amazing
JR10 Posted February 15, 2012 Posted February 15, 2012 Yes, you can use variables with it. Business System viewtopic.php?f=108&t=35797 Notepad++ Syntax Highlighting & Auto Completion viewtopic.php?f=91&t=76726 SQLite Tutorial viewtopic.php?f=148&t=38203
Castillo Posted February 15, 2012 Posted February 15, 2012 JR10: I think he meant's that DX drawing functions doesn't return elements, like this: myText = dxDrawText() San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
drk Posted February 15, 2012 Author Posted February 15, 2012 Yes Solidsnake. EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted February 15, 2012 Posted February 15, 2012 Well, you can always re-make the DX functions and make them return elements like GUI. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
drk Posted February 16, 2012 Author Posted February 16, 2012 It's possible to use custom font on GUI Labels? EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted February 16, 2012 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]) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
drk Posted February 16, 2012 Author Posted February 16, 2012 Oh Thanks, I forget this function. I remember only dxCreateFont LOL EPT Team Server Development: 0% Learning C++ | C++ is amazing
Castillo Posted February 16, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
karlis Posted February 18, 2012 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. [WIP]GTA IV style hud+custom blips + blip text + circular radar areas
drk Posted February 18, 2012 Author 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 EPT Team Server Development: 0% Learning C++ | C++ is amazing
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