Posiadam dwa b??dy [AddEventHandler] i nie wiem czym s? spowodowane
ss: https://imgur.com/a/zI8bII7
Blife-zasoby
[lua]
local screenW, screenH = guiGetScreenSize()
local czas = getTickCount()
local rot = 0
local font = dxCreateFont("Fonts/font.ttf", 11)
function isEventHandlerAdded( sEventName, pElementAttachedTo, func )
if
type( sEventName ) == 'string' and
isElement( pElementAttachedTo ) and
type( func ) == 'function'
then
local aAttachedFunctions = getEventHandlers( sEventName, pElementAttachedTo )
if type( aAttachedFunctions ) == 'table' and #aAttachedFunctions > 0 then
for i, v in ipairs( aAttachedFunctions ) do
if v == func then
return true
end
end
end
end
return false
end
function loadingDownload()
local Alpha = interpolateBetween(0, 0, 0, 255, 220, 200, ((getTickCount() - czas) / 1000), "Linear")
local r,g,b,a=interpolateBetween(0,150,255,255,255,255,(getTickCount())/6500,"SineCurve")
local kr1, kr2, kr3 = interpolateBetween(-0.2630, 0.0368, 0, 0.2530, 0, 0, (getTickCount())/6500,"SineCurve")
rot = rot + 5 > 360 and 0 or rot + 5
dxDrawImage(screenW * 0.0000, screenH * 0.0000, screenW * 1.0400, screenH * 1.0000, "Img/background.png", 0, 0, 0, tocolor(255, 255, 255, Alpha), false)
dxDrawImage(screenW * 0.4820, screenH * 0.7710, screenW * 0.0195, screenH * 0.0340, "Img/loading.png", rot, 0, 0, tocolor(255... |