I need help, I want my buttons to make a function like this
example
Pass the mouse over the button.
---------------> http://oi44.tinypic.com/t7j4gn.jpg <---------------
Remove the mouse from the button.
---------------> http://oi41.tinypic.com/bgtmw5.jpg <---------------
Please, I need help I want that function, but I can not create it,
Somebody do an example without using the wikipedia Would greatly appreciate it
If you have doubts here my client
local isPlayerViewingPanel = false
local sw,sh = guiGetScreenSize()
function dxDrawTheImage ( )
if isPlayerViewingPanel then
dxDrawImage ( 240, 145, 550, 480, "window.png" )
dxDrawImage ( 431.50, 530, 165, 60, "button.png" )
dxDrawImage ( 610.50, 530, 165, 60, "button.png" )
dxDrawImage ( 252.50, 530, 165, 60, "button.png" )
dxDrawText ( "Rules", sw/2 - 26, sh/2 - 230, sw/2 + 175, sh/2 + 80, tocolor ( 255, 255, 255, 255 ), 1.6, "default-bold")
end
end
addEventHandler ( "onClientRender", root, dxDrawTheImage )
bindKey("O", "down",function()
if ( isPlayerViewingPanel == true ) then
isPlayerViewingPanel = false
showCursor (false)
else
isPlayerViewingPanel = true
showCursor (true)
end
end
)