Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: SillySue on Sun 21/03/2004 08:26:49

Title: Making extra's for the status bar
Post by: SillySue on Sun 21/03/2004 08:26:49
I want the status bar to have a text that says what icon I'm using and on what hotspot I'm using it on.

I've already writen @overhotspot@, but what must I write for the icon
Title: Re:Making extra's for the status bar
Post by: Fabiano on Sun 21/03/2004 12:08:08
From the manual:

GetCursorMode
GetCursorMode()

Returns the value of the current mode of the cursor. This is either MODE_LOOK, MODE_USE, MODE_TALK or any custom modes you have created.
Example:

if (GetCursorMode() == MODE_WALK)
  { code here }

will execute the code only if the current cursor mode is MODE 0 (WALK).


so, u can put in the script

if (GetCursorMode() == MODE_WALK)
  { SetLabelText (int gui, int object, Walk to @OVERHOTSPOT);}

and so on