The Dreaded Scrolling Invetory

Started by Rainbow Guy, Sun 08/08/2004 00:32:07

Previous topic - Next topic

Rainbow Guy

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

Ishmael

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) {"
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

Mr Jake

I normally just copy the copy for the scrolling buttons in the default inventory.

Rainbow Guy

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 :-(

Proskrito

#4
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

Rainbow Guy

Which file (manual) did you use ??? maybe i'm using the wrong thing  :o

Proskrito

the help file that comes with AGS, the one that you open by pressing F1 : )

SMF spam blocked by CleanTalk