screenW,screenH = guiGetScreenSize( )
local text = "Elo"
function dx ()
local now = getTickCount()
local endTime = start + 2000
local elapsedTime = now - start
local duration = endTime - start
local progress = elapsedTime / duration
local x1,y1, z1 = screenW * 0.7547, screenH * 0.8991, screenW * 0.0471
local x2,y2, z2 = screenH * 0.0574, screenH * 0.0509, screenW * 0.9552
local x,y = interpolateBetween(x1, y1, z1, x2, y2, z2, progress, "OutQuad")
outputDebugString(progress)
if progress >= 1 then
text = "Nast?pny ruch"
end
dxDrawText(text,x,y)
end
addEvent("gui_pokaz", true)
addEventHandler("gui_pokaz", root,
function()
start = getTickCount()
showCursor(true)
addEventHandler("onClientRender", root, dx)
end
)