SimpleButtonBase.setOnHoverEnter
Douglas Lacerda edited this page Oct 13, 2018
·
1 revision
SimpleButtonBase.setOnHoverEnter()
function
func: Function to be called.
Set the function called when the mouse enter on the button.
You can test this snippet of code here.
let btn = new SimpleButtonBase(10,10,100,100);
btn.setOnHoverEnter(function(){
/*...*/
});
See also SimpleButtonBase.setOnClick, SimpleButtonBase.setOnHoverExit and SimpleButtonBase.setOnHoverStay.