inventory listbox

Started by KiraHaraReturns, Tue 03/04/2012 10:31:53

Previous topic - Next topic

KiraHaraReturns

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?


Khris

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().

KiraHaraReturns

ok, and how to create a (read only) inventory list
thanx for advice

Khris

What do you mean by that?
A list as opposed to an InventoryWindow GUI element? And why read-only?

KiraHaraReturns

just a list with all items the player currently has

Khris

Just add an InventoryWindow to your main GUI.

Are you familiar with creating a GUI? Or are you basically asking how to do that?

KiraHaraReturns

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

Khris

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.

SMF spam blocked by CleanTalk