Jump to content

= [ interpolateBetween ] = مشكله في


Recommended Posts

 

السلام عليكم ورحمة الله وبركاته

 

آخواني

انا فهمت من شرح اخوي شاطح

انا وظيفة

interpolateBetween

اول 3 ارقمنتات فيها بدآيت التآثير

و الـ4الى 6

نهائية التآثير

فآنا حطيت صور كبيره حطي احدثيات width, height

لـ الصوره

و خلية 

z = 0

و حطيت الصوره صغيره

و حطيت احدثياتها في الوظيفه في الارقمنتات 4,5,6

6 خليته صفر

لان انا ابي اسوي تآثير 

2D

المخلص اني انا ا مسوي صوره كبيره  ابيه تصير من كبيره لـ صغيره

الاكواد

 
local sx, sy = guiGetScreenSize()

window = guiCreateStaticImage(192, 63, 1001, 603, ":freeroam/localplayerblip.png", false) 
guiSetVisible ( window, false ) 

start = getTickCount () 
end_ = getTickCount () + 3500 
  
draw = function ( ) 
    elapsedTime = getTickCount () - start 
    duration =  end_ - start 
    progress = elapsedTime / duration 

    local width, height = interpolateBetween ( 1366, 768, 0,327, 39, 0, progress, "InElastic" ) 
    guiSetVisible ( window, true ) 
    guiSetSize(window, width, height, false) 
end 
  
  
bindKey ( 'n', 'down', function ( ) 
    if guiGetVisible ( window ) == false then 
        addEventHandler ( 'onClientRender', root, draw ) 
            setTimer ( function() removeEventHandler ( 'onClientRender', root, draw ) end,3500,1 ) -- التايمر تقديري يمكن ما انتهى التأثير زود او نقص التايمر 
    end 
end) 

 

Link to comment
Just now, fofef said:

على م اضن اخويي تعدل بالاحداثيات وتزبطها 

 

او ترجع تعيد صنع المود من جديد اشان تزبط مقاس الصورة من سكربت 

guieditor

 

هاذا الي اعرفه ~

 

مزبط كل شيء ^^ 

 

فآنا حطيت صور كبيره حطي احدثيات width, height

لـ الصوره

و خلية 

z = 0

و حطيت الصوره صغيره

و حطيت احدثياتها في الوظيفه في الارقمنتات 4,5,6

6 خليته صفر

 

 

Link to comment
local sx, sy = guiGetScreenSize()

window = guiCreateStaticImage(192, 63, 1366, 768, ":freeroam/localplayerblip.png", false) 
guiSetVisible ( window, false ) 

start = getTickCount () 
end_ = getTickCount () + 3500 
  
draw = function ( ) 
    elapsedTime = getTickCount () - start 
    duration =  end_ - start 
    progress = elapsedTime / duration 
    local width, height = interpolateBetween ( 1366, 768, 0,0, 0, 0, progress, "Linear" ) 
    guiSetSize(window, width, height, false) 
	if ( width <= 0 and height <= 0 ) then 
		removeEventHandler ( 'onClientRender', root, draw )
	end 
end 
  
bindKey ( 'n', 'down', function ( ) 
    if guiGetVisible ( window ) == false then 	
		guiSetVisible ( window, true ) 
        addEventHandler ( 'onClientRender', root, draw ) 
    end 
end) 

 

Link to comment
Just now, NssoR said:

 


local sx, sy = guiGetScreenSize()

window = guiCreateStaticImage(192, 63, 1366, 768, ":freeroam/localplayerblip.png", false) 
guiSetVisible ( window, false ) 

start = getTickCount () 
end_ = getTickCount () + 3500 
  
draw = function ( ) 
    elapsedTime = getTickCount () - start 
    duration =  end_ - start 
    progress = elapsedTime / duration 
    local width, height = interpolateBetween ( 1366, 768, 0,0, 0, 0, progress, "Linear" ) 
    guiSetSize(window, width, height, false) 
	if ( width <= 0 and height <= 0 ) then 
		removeEventHandler ( 'onClientRender', root, draw )
	end 
end 
  
bindKey ( 'n', 'down', function ( ) 
    if guiGetVisible ( window ) == false then 	
		guiSetVisible ( window, true ) 
        addEventHandler ( 'onClientRender', root, draw ) 
    end 
end) 

نصور انا  

حاطه صوره قد الشاشه ثمن تصغر

انت تصغر صح لكن تروح على اليسار  بي الزآوه لا انا ابيه تصغر لين نصف الشاشه ^^

 

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