So my goal is this. To make a list of items. The items consist of a name, an image, and a description. The items are added to the list at certain points in the story.
When the player clicks on one of the item names, it shows the image and description in the frames.
Think Ace Attorney.
Here's my current code.
Code: Select all
screen inventory():
tag menu
use game_menu(_("Inventory")):
vpgrid:
cols 1
spacing 5
draggable True
mousewheel True
scrollbars "vertical"
side_xalign 0.0
for i in range(1, 2):
frame:
textbutton _("Autopsy") xysize (300, 25):
if itemshow = false:
action Show("Autopsy")
else:
action Hide("Autopsy")
#Pic
frame:
xalign 1.0
yalign 0.0
xysize (250, 250)
#Description
frame:
xalign 1.0
yalign 1.0
xysize (600, 300)