IsInteractionAvailable (int x, int y, int mode)
Checks whether there is an interaction defined for clicking on the screen at (X,Y)
in cursor mode MODE.
This function is very similar to ProcessClick, except that rather than carry out any
interactions it encounters, it simply returns 1 if something would have happened, or 0 if
unhandled_event would have been run.
This is useful for enabling options on a verb-coin style GUI, for example.
Example:
if (IsInteractionAvailable(mouse.x,mouse.y, eModeLookat) == 0)
Display("looking here would not do anything.");
See Also: InventoryItem.IsInteractionAvailable,
ProcessClick
|