Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: animate
1. animate
Mam problem z animate bo na wikipedii MTA, jest napisane:


--Slide Animation
local sx
sy guiGetScreenSize( )
local window guiCreateWindow((sx-300)/2, (sy-400)/2300400"Test"false)
guiSetVisible(windowfalse)
bindKey("f2""down", function( )
    if 
anim then return end
    local v 
guiGetVisible(window)
    if 
not v then 
        guiSetVisible
(windowtrue)
        
animate(0111000, function(alpha)
            
guiSetAlpha(window,alpha)
        
end)
    
end
    anim 
true
    animate
(and 400 or 0and or 40021250, function(height)
        if 
and height == 0 then 
            guiSetVisible
(windowfalse)
            
anim false
        
elseif not v and height == 400 then
            anim 
false
        end
        local w
guiGetSize(windowfalse)
        
guiSetSize(windowwheightfalse)
    
end)
end)




ja zrobilem tak:
local pos = {
    
bg = {sw(0), sh(0), sw(1920), sw(1080) },
    
panel = {sw(405), sh(230), sw(1154), sw(623) }
}
animate(600, -6021500, function(player)
    
dxDrawImage(pos["panel"].xpos["panel"].ypos["panel"].wpos["panel"].hui.panel)
end)
Obraz si? pojawia, ale po chwili znika bez ?adnej animacji

Mam pytanie czy mo?e kto? da? przyk?ad z tym pod dxDrawImage