Jump to content

Votemap Problem


Mefisto_PL

Recommended Posts

It's on race_client.lua

For the time played, it's on the line 25:

  
timepassed = dxText:create('0:00:00', screenWidth - 10, screenHeight - 25, false, 'bankgothic', 0.7, 'right'), 
  

  
function updateTime() 
    local tick = getTickCount() 
    local msPassed = tick - g_StartTick 
    if not isPlayerFinished(g_Me) then 
        g_dxGUI.timepassed:text(msToTimeStr(msPassed)) 
    end 
    local timeLeft = g_Duration - msPassed 
    guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) 
    if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then 
        startHurry() 
    end 
end 
  

And for the timeleft, its on the line 34:

  
timeleft = guiCreateLabel(screenWidth/2-108/2, 19, 108, 30, '', false), 
  

  
function updateTime() 
    local tick = getTickCount() 
    local msPassed = tick - g_StartTick 
    if not isPlayerFinished(g_Me) then 
        g_dxGUI.timepassed:text(msToTimeStr(msPassed)) 
    end 
    local timeLeft = g_Duration - msPassed 
    guiSetText(g_GUI.timeleft, msToTimeStr(timeLeft > 0 and timeLeft or 0)) 
    if g_HurryDuration and g_GUI.hurry == nil and timeLeft <= g_HurryDuration then 
        startHurry() 
    end 
end 
  

You have just to change the positions, size, etc.

Good luck

Edit: Topic edited :|

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...