Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Rainbow Guy on Sun 08/08/2004 00:32:07

Title: The Dreaded Scrolling Invetory
Post by: Rainbow Guy on Sun 08/08/2004 00:32:07
I know this has been covered allot before but....

Could we go over again how to create an inventory window with working scroll bar/buttonsÃ,  ;)

all the threads i've read so far, seem to be from people who are half in to it, but where do you start. For example this bit :-

//Ã,  DEFAULT INVENTORY WINDOW
//Ã,  InventoryScreen();
//Ã, 
//Ã,  Ã, CUSTOM INVENTORY WINDOW
//Ã,  Ã, GUIOn (1);

which do i go forÃ,  ???

and where do i go from there ???
thanx
Title: Re: The Dreaded Scrolling Invetory
Post by: Ishmael on Sun 08/08/2004 05:39:18
Global Script, look for line "function show_inventory_window() {". Then just change the commenting, and examine the inventory GUI set in the GUIs section. The interface_click function in the Global Script covers the mouse button functionality, under the conditional "if (interface==INVENTORY) {"
Title: Re: The Dreaded Scrolling Invetory
Post by: Mr Jake on Sun 08/08/2004 08:46:56
I normally just copy the copy for the scrolling buttons in the default inventory.
Title: Re: The Dreaded Scrolling Invetory
Post by: Rainbow Guy on Sun 08/08/2004 18:19:15
Hi, I have another little problem, and i didn't know where else to post it so, you know when you set the Cursor Mode.  example :-

SetCursorMode(MODE_LOOK)

How many different type are there, the manual doesn't say, i'm looking for the Interact mode, but MODE_INTERACT doesn't seem to work :-(
Title: Re: The Dreaded Scrolling Invetory
Post by: Proskrito on Sun 08/08/2004 18:45:17
i did a quick search in the manual, and i found this in the ProcessClick function:

Available cursor modes: MODE_WALK, MODE_LOOK, MODE_USE, MODE_TALK, MODE_USEINV, MODE_PICKUP.

So i suppose you want MODE_USE : )

EDIT: you can also set/check modes using their number
Title: Re: The Dreaded Scrolling Invetory
Post by: Rainbow Guy on Sun 08/08/2004 19:58:31
Which file (manual) did you use ??? maybe i'm using the wrong thing  :o
Title: Re: The Dreaded Scrolling Invetory
Post by: Proskrito on Mon 09/08/2004 11:45:14
the help file that comes with AGS, the one that you open by pressing F1 : )