Sex* Posted March 6, 2013 Posted March 6, 2013 One way is deleting that text and creating a new one with dxDrawColorText like i did.
~DarkRacer~ Posted March 6, 2013 Author Posted March 6, 2013 how can i delete that text ? what's the file that i should edit?
Sex* Posted March 6, 2013 Posted March 6, 2013 how can i delete that text ?what's the file that i should edit? race_client. I just put "--" in there so they wont draw the text but they dont create debug errors and epic lags also then.
Anony# Posted March 6, 2013 Posted March 6, 2013 One way is deleting that text and creating a new one with dxDrawColorText like i did. is not necessary to delete the text Team, MTA Scripters.
Castillo Posted March 6, 2013 Posted March 6, 2013 After: g_dxGUI = { ranknum = dxText:create('1', screenWidth - 60, screenHeight - 95, false, 'bankgothic', 2, 'right'), ranksuffix = dxText:create('st', screenWidth - 40, screenHeight - 86, false, 'bankgothic', 1), checkpoint = dxText:create('0/0', screenWidth - 15, screenHeight - 54, false, 'bankgothic', 0.8, 'right'), timepassed = dxText:create('0:00:00', screenWidth - 10, screenHeight - 25, false, 'bankgothic', 0.7, 'right'), mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'bankgothic', 0.7, 'left') } You can do: g_dxGUI['mapdisplay']:color ( 0, 255, 0, 255 ) San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Sex* Posted March 6, 2013 Posted March 6, 2013 One way is deleting that text and creating a new one with dxDrawColorText like i did. is not necessary to delete the text Yes, i know, i said it in my last post.
Anony# Posted March 6, 2013 Posted March 6, 2013 I believe that you can use g_dxGUI.mapdisplay:colorCoded(true) note: the code is not complete! Team, MTA Scripters.
Castillo Posted March 6, 2013 Posted March 6, 2013 There's no such thing as that, Annoy#. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Anderl Posted March 6, 2013 Posted March 6, 2013 After: g_dxGUI = { ranknum = dxText:create('1', screenWidth - 60, screenHeight - 95, false, 'bankgothic', 2, 'right'), ranksuffix = dxText:create('st', screenWidth - 40, screenHeight - 86, false, 'bankgothic', 1), checkpoint = dxText:create('0/0', screenWidth - 15, screenHeight - 54, false, 'bankgothic', 0.8, 'right'), timepassed = dxText:create('0:00:00', screenWidth - 10, screenHeight - 25, false, 'bankgothic', 0.7, 'right'), mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'bankgothic', 0.7, 'left') } You can do: g_dxGUI['mapdisplay']:color ( 0, 255, 0, 255 ) I think he wants to change only the color of the map name, not the whole text's color. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
~DarkRacer~ Posted March 7, 2013 Author Posted March 7, 2013 Thanks Solidsnake14, but i need to color the name only maybe i can seperate the "Map : " and the map name?
Sex* Posted March 7, 2013 Posted March 7, 2013 Thanks Solidsnake14, but i need to color the name onlymaybe i can seperate the "Map : " and the map name? Yes, you can.
~DarkRacer~ Posted March 7, 2013 Author Posted March 7, 2013 Thanks all, i deleted the original map name from Race_client.lua and i made new script with dxDrawColorText.
Anderl Posted March 7, 2013 Posted March 7, 2013 You don't need that function, dxDrawText already supports multiple colors in one text. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
~DarkRacer~ Posted March 7, 2013 Author Posted March 7, 2013 i know, but i found dxDrawColorText better.
Castillo Posted March 7, 2013 Posted March 7, 2013 No, dxDrawText is more efficient ( as far as I know ). San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Anderl Posted March 7, 2013 Posted March 7, 2013 i know, but i found dxDrawColorText better. Better in what? "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
Anony# Posted March 7, 2013 Posted March 7, 2013 https://community.multitheftauto.com/ind ... ls&id=3421 Team, MTA Scripters.
Anderl Posted March 7, 2013 Posted March 7, 2013 External functions for color codes in DirectX-rendered texts ARE NOT needed anymore. Take a look at dxDrawText's wiki page. "[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007
~DarkRacer~ Posted March 8, 2013 Author Posted March 8, 2013 External functions for color codes in DirectX-rendered texts ARE NOT needed anymore. Take a look at dxDrawText's wiki page. Okay thanks.
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