Блядская анимация

This commit is contained in:
igor 2018-01-08 17:41:33 +03:00
parent ebe00d100a
commit bb07ccf62e
2 changed files with 3 additions and 3 deletions

View File

@ -4,7 +4,7 @@
url="https://raw.githubusercontent.com/IgorTimofeev/OpenComputers/master/OS.lua",
type="Script",
forceDownload=true,
version=4.13,
version=4.14,
},
{
path="/MineOS/Pictures/MoonTouch.pic",

4
OS.lua
View File

@ -72,7 +72,7 @@ local function biometry(creatingNew)
fingerImage.eventHandler = function(mainContainer, object, eventData)
if eventData[1] == "touch" then
scanLine:addAnimation(
function(mainContainer, object, animation)
function(mainContainer, animation)
scanLine.hidden = false
if animation.position <= 0.5 then
scanLine.localY = math.floor(fingerImage.localY + fingerImageHeight - fingerImageHeight * animation.position * 2 - 1)
@ -80,7 +80,7 @@ local function biometry(creatingNew)
scanLine.localY = math.floor(fingerImage.localY + fingerImageHeight * (animation.position - 0.5) * 2 - 1)
end
end,
function(mainContainer, switch, animation)
function(mainContainer, animation)
scanLine.hidden = true
animation:delete()