Journal with images in descending order

Started by Brian925, Fri 16/02/2024 04:26:18

Previous topic - Next topic

Brian925

I have a Journal section of my game in which rectangular images show things you've learned.

I'm trying to stack these images on top of each other so they descend from most recent information to least recent. So each time you "unlock" a piece of information, it will show up at the top of the stack.

My instinct was a list box, but I couldn't figure out how to replace text with images. So then I tried to use multiple GUIS that all contained the journal options in buttons stacked on top of each other, but that made it difficult to scroll without setting a thousand variables.

Then I tried a second inventory box, but I couldn't figure out how to call out to the images without adding inventory to my actual inventory.

Is there a simple method to stack images in descending order with the capability of scrolling? Thanks

Khris

Quote from: Brian925 on Fri 16/02/2024 04:26:18Then I tried a second inventory box, but I couldn't figure out how to call out to the images without adding inventory to my actual inventory.

I'd have used GUI buttons for this, but a 2nd inventory is actually a neat idea.
Create a dummy character, then set the inventory window's owner to that dummy. Now you can add items to the dummy's inventory and they will show up in the window.
Newly gained items will end up at the bottom though, so not sure if it's possible to get items in descending order with an inv window. Calling UpdateInventory() will put the items in the order of the editor, so that should work, but it will also re-sort your player character's inventory I guess.

SMF spam blocked by CleanTalk