Scrolling menu with inventory items?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
HepatitisQ
Newbie
Posts: 2
Joined: Thu Aug 06, 2015 9:43 pm
Tumblr: johnnythundah.tumblr.com
Location: Austin, TX
Contact:

Scrolling menu with inventory items?

#1 Post by HepatitisQ » Thu Aug 06, 2015 9:48 pm

I have I guess a very specific thing I need help with, a menu that takes a part of the screen, a scrolling menu, that shows the player's inventory listed as clickable text.

Honestly, if someone can help with one of those three things that'd be awesome. I've got scrolling to work only for an image but can't get a menu into it.

User avatar
mobychan
Veteran
Posts: 275
Joined: Fri Apr 24, 2015 6:31 am
Projects: The Chosen - Sakura Pink & Gentian Blue
Organization: Foresoft
Location: Germany
Contact:

Re: Scrolling menu with inventory items?

#2 Post by mobychan » Fri Aug 07, 2015 2:10 am

How about posting what you already have?
just use the [ code][ /code] tag(without the spaces) and paste your code in between.

did you try looking at this?
http://lemmasoft.renai.us/forums/viewto ... 51&t=25579

User avatar
chocojax
Miko-Class Veteran
Posts: 702
Joined: Sun Oct 25, 2009 11:27 am
Completed: http://art.jphi.me/projects
Projects: Umbra, Familiarity, Maleficent Justice
Organization: spaceNote
Tumblr: chocojax
Github: jenniferphi
Location: California
Contact:

Re: Scrolling menu with inventory items?

#3 Post by chocojax » Fri Aug 07, 2015 11:11 am

Something like this?

Code: Select all

side "c":
    area (0,0,600,400) # x-position,y-position,width,height
    viewport:
        draggable True
        mousewheel True
        scrollbars "vertical"
        has vbox
        for i in range(0,25): # length of player inventory
            textbutton "Some inventory item here": # Replace with item name within inventory or something
                action NullAction() #action to do upon clicking

User avatar
HepatitisQ
Newbie
Posts: 2
Joined: Thu Aug 06, 2015 9:43 pm
Tumblr: johnnythundah.tumblr.com
Location: Austin, TX
Contact:

Re: Scrolling menu with inventory items?

#4 Post by HepatitisQ » Fri Aug 07, 2015 12:33 pm

chocojax wrote:Something like this?

Code: Select all

side "c":
    area (0,0,600,400) # x-position,y-position,width,height
    viewport:
        draggable True
        mousewheel True
        scrollbars "vertical"
        has vbox
        for i in range(0,25): # length of player inventory
            textbutton "Some inventory item here": # Replace with item name within inventory or something
                action NullAction() #action to do upon clicking
Yeah this is pretty much what I needed, thank you very much. uvu

Post Reply

Who is online

Users browsing this forum: Google [Bot]