Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: KiraHaraReturns on Tue 03/04/2012 10:31:53

Title: inventory listbox
Post by: KiraHaraReturns on Tue 03/04/2012 10:31:53
I would like to make a text based inventory like in the first Maniac Mansion version or access software's "countdown" for example. Additionaly it would be fine if the actions would be displayed too (walk to item)
Unfortunately the 9verb gui isn't an adequate solution for my project, because I want to change the mouse actions with the right mouse button while the actionline-gui shows the current action (look/talk etc) and the item should be also displayed (use item with someone)
Can someone help me out?
(http://i43.tinypic.com/s4p7pl.jpg)
Title: Re: inventory listbox
Post by: Khris on Tue 03/04/2012 10:51:27
It's easier and more customizable to use a standard inventory. You can use (an array of) DynamicSprites and DrawingSurface.DrawString to auto-generate the inventory item sprites.

For the action line, compose a String in repeatedly_execute using the mouse.Mode and Game.GetLocationName().
Title: Re: inventory listbox
Post by: KiraHaraReturns on Tue 03/04/2012 11:32:30
ok, and how to create a (read only) inventory list
thanx for advice
Title: Re: inventory listbox
Post by: Khris on Tue 03/04/2012 11:35:10
What do you mean by that?
A list as opposed to an InventoryWindow GUI element? And why read-only?
Title: Re: inventory listbox
Post by: KiraHaraReturns on Tue 03/04/2012 19:31:11
just a list with all items the player currently has
Title: Re: inventory listbox
Post by: Khris on Wed 04/04/2012 01:03:07
Just add an InventoryWindow to your main GUI.

Are you familiar with creating a GUI? Or are you basically asking how to do that?
Title: Re: inventory listbox
Post by: KiraHaraReturns on Thu 05/04/2012 09:44:47
I'm familiar with creating GUIs but the inventory gui I have shows just the icons, I need a gui with the items written down
Title: Re: inventory listbox
Post by: Khris on Thu 05/04/2012 11:16:48
Like I said in my first reply,
Quote from: Khris on Tue 03/04/2012 10:51:27You can use (an array of) DynamicSprites and DrawingSurface.DrawString to auto-generate the inventory item sprites.