Don't execute script when mouse is in eModeWait

Started by SilverSpook, Wed 14/12/2016 20:58:08

Previous topic - Next topic

SilverSpook

I'm having trouble getting a repeatedly_execute_always() script to stop displaying a 'hover label' during cutscenes, when the mouse goes into eModeWait.

Code: ags

  if(mouse.Mode != eModeWait) 
  {
    //Show the label
  }
  else
  {
    //Don't show the label
  }



The thing is, even when the game is blocked, the label is still shown.  Is there some other way to tell whether the game is being blocked at the moment?  Thanks.

Scavenger

I believe it's:

Code: AGS

if (IsInterfacedEnabled())
{
//Show label
}
else
{
//Don't show label
}


Because:
QuoteIsInterfaceEnabled()

Returns 1 if the player interface is currently enabled, 0 if it is disabled. The user interface is disabled while the cursor is set to the Wait cursor - ie. while the character is performing a blocking Walk, or other blocking action.

SMF spam blocked by CleanTalk