Message
Message
local Tweens = {}
local Easings = {}
function Easings.Linear(t)
return t
end
function Easings.InQuad(t)
return t * t
end
function Easings.OutQuad(t)
return t * (2 - t)
end
function Easings.InOutQuad(t)
if t < 0.5 then
return 2 * t * t
else
return -1 + (4 - 2 * t) * t
end
end
function Easings.OutBounce(t)
if t < 1 / 2.75 then
return 7.5625 * t * t
elseif t < 2 / 2.75 then
t = t - 1.5 / 2.75
return 7.5625 * t * t + 0.75
elseif t < 2.5 / 2.75 then
t = t - 2.25 / 2.75
return 7.5625 * t * t + 0.9375
else
t = t - 2.625 / 2.75
return 7.5625 * t * t + 0.984375
end
end
local Tween = {
Easings = Easings
}
Tweens[Object] = newTween
return newTween
end
function Tween:Play()
self.ElapsedTime = 0
self.Playing = true
end
function Tween.UpdateAll(deltaTime)
updateTweens(deltaTime)
end
return Tween
function start_img:onHover()
start_img:load("D:\\start_icon.png")
end
function start_img:onClick()
start_img:load("D:\\start_icon2.png")
sleep(50)
start_img:load("D:\\start_icon.png")
end
function start_img:onLeave()
start_img:load("D:\\start_icon2.png")
end
function Picture2:onHover()
Picture2:load("D:\\exit2.png")
end
function Picture2:onLeave()
Picture2:load("D:\\exit.png")
end
function Picture1:onHover()
Picture1:load("D:\\shutdown2.png")
end
function Picture1:onLeave()
Picture1:load("D:\\shutdown.png")
end
repeat
ui.update()
until win.visible == false