Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Captain Mostly on Fri 06/06/2003 18:19:33

Title: Lucas arts inventory issues
Post by: Captain Mostly on Fri 06/06/2003 18:19:33
...I've done my very best not to have to ask this, but no matter how hard I look, I only ever seem to find cryptic allusions to how to code up the buttons to scroll a LucasArts inventory window. I know it's crazy, but I couldn't find exactly how to do it in any tutorial (just the mention that it has to be done, taken from the manuel)

Anyway, I'm ALSO posting because I'd like to know if it's possible to increase the space allocated to every item-image within a LucasArts inventory, because my images are all over-lapping and it's really irritating...

PLEASE could someone help me! (or just let me know where to find the ansers!!! I thought I put a fairly similar topic to this one up not long ago, but I either imagined it, or a moderator vanished it for being stupid  :(  )
Title: Re:Lucas arts inventory issues
Post by: on Fri 06/06/2003 19:52:58
I think I saw how to do it in the scripts of the tutorial.
(Sorry if I'm wrong)
Title: Re:Lucas arts inventory issues
Post by: Captain Mostly on Fri 06/06/2003 19:58:47
if it IS there (I'm guessing you mean the scripting tutorial in the manuel) then I certainly can't see it...

You'd have thought this'd be a more common problem... I've been searching for in in the back-log of technical and basic-technical forum posts, and if there are any questions in there about it already, they're titled in such a way as I can't tell what's in them, or I'm just blind...
Title: Re:Lucas arts inventory issues
Post by: on Fri 06/06/2003 20:13:27
Sorry,I AM a bit wrong,I saw it in the scripts of the Demo Game. :-\
Title: Re:Lucas arts inventory issues
Post by: on Fri 06/06/2003 20:18:42
Aha !Found It!(It's From the Forums!) :)
Now, My inv works, but i have on little problem with it. My items. First row of INV looks fine, items are lined correctly.
But the problem occurs on the next row: Items on the second row come partially over the first row.
How can I make space between objects bigger, or is there some recomended size, that should be used as size of items?

Try using the function:
SetInvDimensions(32,32);
...you can change the numbers to whatever you want. This function doesn't resize items to fit, but establishes how big a single inventory slot is. Also, remember to draw all your inventory items the same size, otherwise they will overlap eachother.
Title: Re:Lucas arts inventory issues
Post by: Captain Mostly on Fri 06/06/2003 21:54:07
thanks! I also found the scroll button code here:

http://www.agsforums.com/yabb/index.php?board=2;action=display;threadid=4294

although I still say that it's a piece of code that should be readily available without having to traul for it (although I suppose it'd have been easyer if I'd had the demo game on my computer...)

thanks for the inventory cell-re-sizer, although I NOW think I quite like the over-lapped look that I've got... oh the bitter bitter irony!
Title: Re:Lucas arts inventory issues
Post by: Scummbuddy on Sat 07/06/2003 01:04:12
I don't understand your trouble... The lucasarts gui comes with ags in every download.  You load it into your guis and then add the accompanied code into its proper place, which tells you where to put it.
Title: Re:Lucas arts inventory issues
Post by: Scorpiorus on Sat 07/06/2003 13:07:01
Seems like not everyone knows that LucasArt-style GUI comes along with the AGS since v2.1.

And I can't find that in the manual... :P

-Cheers
Title: Re:Lucas arts inventory issues
Post by: Captain Mostly on Sat 07/06/2003 19:26:48
Wha?!?!?!? Came with the dowload!?!?!?! How can I have not noticed this?!?!?!
Title: Re:Lucas arts inventory issues
Post by: MrColossal on Sun 08/06/2003 06:28:41
cap'n there should be a file called LUCASART.GUI in your main ags folder?

import that?

i always forget the code for scolling inventory also so i just open LUCASART.GUI in notepad and look at the bottom of the file, it has the script in there

eric