Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: DazJ on Tue 29/07/2008 15:34:04

Title: Disable Hostpots/Objects In Wait Mode? (SOLVED)
Post by: DazJ on Tue 29/07/2008 15:34:04
I'm using SSH's Description module which is great.

My question is, is there anyway to disable to Descriptions of Object/Hotspots etc when the mouse cursor is in wait mode? It looks sloppy when a cutscene is on but the player can still move the cursor and display the hotspots' and objects' descriptions.

Thanks in advance.
Title: Re: Disable Hostpots/Objects In Wait Mode?
Post by: TwinMoon on Tue 29/07/2008 16:23:24
I don't use that module, but:

You could disable the label: if it is called lblStatusline, you could put in the repeatedly_execute (global script):

if ( (Mouse.Mode == eModeWait) && (lblStatusline.Visible==true) )
  lblStatusline.Visible = false;
else if (lblStatusline.Visible == false) lblStatusline.Visible = true;


Alternatively, in the module itself there also is a rep_exe, you could stop it from updating whenever the cursor is in wait mode.

EDIT: Just skimmed through the module, Andrew uses rep_exe_always. IMHO changing it to this should solve your problem:

function repeatedly_execute_always() {
  if (Mouse.Mode != eModeWait) Description.rep_ex();
}

Title: Re: Disable Hostpots/Objects In Wait Mode?
Post by: DazJ on Tue 29/07/2008 16:37:18
That doesn't work I'm afraid :(

EDIT: Fixed. I changed the

Description.NoDescriptionWhenMode=7;

setting.