Hi, I added an event handler to my static image. but when I actually
See the gif
code :
login = {
label = {},
staticimage = {},
edit = {}
}
login.staticimage[1] = guiCreateStaticImage(557, 336, 400, 404, "imgs/window.png", false)
login.staticimage[2] = guiCreateStaticImage(191, 314, 185, 57, "imgs/register.png", false, login.staticimage[1])
login.staticimage[3] = guiCreateStaticImage(14, 308, 167, 73, "imgs/login.png", false, login.staticimage[1])
---- EVENT :
addEventHandler("onClientMouseEnter",login.staticimage[2],function()
guiSetAlpha(login.staticimage[2],0.8)
outputChatBox("trigger in")
end)
addEventHandler("onClientMouseLeave",login.staticimage[2],function()
guiSetAlpha(login.staticimage[2],0.2)
outputChatBox("trigger left")
end)
guiSetAlpha(login.staticimage[2],0.2)