SimpleButtonBase.setOnHoverStay - HermesPasser/Ramu GitHub Wiki

SimpleButtonBase.setOnHoverExit()

Parameters

function func: Function to be called.

Description

Set the function called while the mouse stays on the button.

You can test this snippet of code here.

let btn = new SimpleButtonBase(10,10,100,100);
btn.setOnHoverStay(function(){
   /*...*/
});

See also SimpleButtonBase.setOnClick, SimpleButtonBase.setOnHoverExit and SimpleButtonBase.setOnHoverEnter.