Jump to content

[Help]Timeleft Font


Brad96

Recommended Posts

 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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...