Brad96 Posted August 29, 2013 Share Posted August 29, 2013 amazon.comfgjte of the two timers in race_client .. eh I tried but does not change .. as change? Link to comment
EstrategiaGTA Posted August 29, 2013 Share Posted August 29, 2013 What do you mean!? Explain better please. Link to comment
EstrategiaGTA Posted August 29, 2013 Share Posted August 29, 2013 You said that you've tried chaning the font from 'race_client.lua' and it didn't work, may you post the code? Link to comment
Brad96 Posted August 29, 2013 Author Share Posted August 29, 2013 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, 'myFont', 0.7, 'right'), mapdisplay = dxText:create('Map: none', 2, screenHeight - dxGetFontHeight(0.7, 'bankgothic')/2, false, 'bankgothic', 0.7, 'left') } g_dxGUI.ranknum:type('stroke', 2, 0, 0, 0, 255) g_dxGUI.ranksuffix:type('stroke', 2, 0, 0, 0, 255) g_dxGUI.checkpoint:type('stroke', 1, 0, 0, 0, 255) g_dxGUI.timepassed:type('stroke', 1, 0, 0, 0, 255) g_GUI = { timeleftbg = guiCreateStaticImage(screenWidth/2-108/2, 15, 108, 24, 'img/timeleft.png', false, nil), timeleft = guiCreateLabel(screenWidth/2-108/2, 19, 108, 30, '', false), healthbar = FancyProgress.create(250, 1000, 'img/progress_health_bg.png', -65, 60, 123, 30, 'img/progress_health.png', 8, 8, 108, 15), speedbar = FancyProgress.create(0, 1.5, 'img/progress_speed_bg.png', -65, 90, 123, 30, 'img/progress_speed.png', 8, 8, 108, 15), } guiSetFont(g_GUI.timeleft, 'bankghotic) Link to comment
EstrategiaGTA Posted August 29, 2013 Share Posted August 29, 2013 For custom fonts you need to use: guiCreateFont Also your code is wrong, you didn't close the name of the font with other string. You should replace the line 15 with: guiSetFont(g_GUI.timeleft, "bankghotic") Link to comment
EstrategiaGTA Posted August 29, 2013 Share Posted August 29, 2013 In the Wiki you may find that bankghotic isn't a Starndard GUI Font, so you need to use: guiCreateFont Or have you already used it? Link to comment
Brad96 Posted August 29, 2013 Author Share Posted August 29, 2013 no , but i can create this with the sintaxis of the wiki for race ? look this : timeleftbg = guiCreateStaticImage(screenWidth/2-108/2, 15, 108, 24, 'img/timeleft.png', false, nil), timeleft = guiCreateLabel(screenWidth/2-108/2, 19, 108, 30, '', false), timepassed = guiCreateLabel(screenWidth - 78, screenHeight - 29, 100, 30, '', false), healthbar = FancyProgress.create(250, 1000, 'img/progress_health_bg.png', -65, 60, 123, 30, 'img/progress_health.png', 8, 8, 108, 16), speedbar = FancyProgress.create(0, 1.5, 'img/progress_speed_bg.png', -65, 90, 123, 30, 'img/progress_speed.png', 8, 8, 108, 16), } myFont = guiCreateFont( "28d.ttf", 20 ) guiSetFont(g_GUI.timeleft, 'myFont') 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