Hi, I have a problem with nextmap of gamemode Race.
I did this and then when i select a nextmap, does not appear the nextmap below the map.
which would be my mistake =/
--- race_client.lua [All]
nextmapdisplay = dxText:create('#ff9900Next Map: #ffffffnot set now...', 2, screenHeight - fontX/2, false, 'default-bold', fonts*2, 'left')
g_dxGUI.nextmapdisplay:type('shadow', 1, 0, 0, 0, 175)
g_dxGUI.nextmapdisplay:colorCoded(true)
function resetposs()
g_dxGUI.nextmapdisplay:visible(false)
g_dxGUI.mapdisplay:position(2, sH - fontX/2, false)
fps:position(2, sH-fontX*2.5, false)
spectators:position(2, sH-fontX*1.5, false)
end
addEvent("resetposs", true)
addEventHandler("resetposs", getRootElement(), resetposs)
function nextMapSet(mapname)
g_dxGUI.mapdisplay:position(2, sH - fontX*1.5, false)
fps:position(2, sH-fontX*3.5, false)
spectators:position(2, sH-fontX*2.5, false)
g_dxGUI.nextmapdisplay:visible(true)
g_dxGUI.nextmapdisplay:text("#ff9900Next Map: #ffffff" ..mapname)
end
addEvent("onNextMap", true)
addEventHandler("onNextMap", getRootElement(), nextMapSet)