Jump to content

[HELP] How to set dx animation only for one rectangle, when insert new data to table?


Turbesz

Recommended Posts

I tried this way (this is not the full code), and when i insert a new data to the table the rectangle appears with animation, and when i insert again, then existing and new rectangle appears with animation too, how to set animation only for the new one? (sry, my english is very bad)

local start = getTickCount() 
local one, one1 = 1, (sy_/2+800) * ym
local two, two1 = 1, (sy_/2+300) * ym

function teszt()
	for k, v in ipairs(notifications) do
	local now = getTickCount() 
	local x,y = interpolateBetween(one, one1, 0, two, two1, 0, (now - start) / ((start + 600) - start), "Linear") 
	
	dxDrawRectangle((sx_-1900) * xm, y - (31*k), dxGetTextWidth("test", 0.9, myFont,true)+52, 30 * ym, tocolor(0, 0, 0, 120))
	end
end
addEventHandler("onClientRender",root,teszt)

addEventHandler("onClientPlayerChangeNick", root, function(l_4_0, l_4_1)
start = getTickCount()
end
)

 

Link to post
  • IIYAMA locked this topic
50 minutes ago, Turbesz said:

this is not the full code

Your current code contains fragments from a decompiled script.

Locked

  • Like 1
  • Confused 1
Link to post

@Turbesz

I can see that you are confused by my reply.

These are the fragments of a decompiled script:

1 hour ago, Turbesz said:

function(l_4_0, l_4_1)

 

I am not going to start a discussion with you about how those slipped in to your code. When I see reverse-engineered variable names, the topic is locked. (Not the end of the world...)

  • Like 1
Link to post
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...