Custom Menu

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
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Custom Menu

#1 Post by CutlassBoardgame » Fri Aug 27, 2021 2:27 am

Hey there I'm trying to make a custom menu that starts off with 52 items, that slowly diminish over time.
Think a deck of cards, that when you play a card it does it's thing, but it's no longer in the deck anymore.
The problem is, at the start I need to be able to have 52 items in the menu.

I'm thinking the easiest solution is to add a defined menu size, and a scroll bar (as at the moment, they all just spiral off the top and bottom of the screen.)
but I'm open to counter suggestions
Image

User avatar
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Re: Custom Menu

#2 Post by CutlassBoardgame » Tue Aug 31, 2021 12:19 pm

Would also be interested in a way to easily randomize a smaller segment of the 52 options, or have a series of images across the screen be a menu instead. Still looking for help on this.
Image

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Custom Menu

#3 Post by hell_oh_world » Tue Aug 31, 2021 12:25 pm


User avatar
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Re: Custom Menu

#4 Post by CutlassBoardgame » Tue Aug 31, 2021 12:57 pm

hell_oh_world wrote:
Tue Aug 31, 2021 12:25 pm
Tried using sets?
https://www.renpy.org/doc/html/menus.html#menu-set
If I do that I still am not able to get all 52 items into it.
Image

User avatar
hell_oh_world
Miko-Class Veteran
Posts: 777
Joined: Fri Jul 12, 2019 5:21 am
Projects: The Button Man
Organization: NILA
Github: hell-oh-world
Location: Philippines
Contact:

Re: Custom Menu

#5 Post by hell_oh_world » Tue Aug 31, 2021 1:21 pm

If your concern is to fit those 52 choices, then it's just a matter of styling the screen menu in your screens.rpy.
Try using viewports etc.

User avatar
CutlassBoardgame
Regular
Posts: 27
Joined: Sun Jan 03, 2021 6:23 am
Projects: Winning Love by Daylight
Organization: Cutlass Boardgames
itch: cutlassboardgame
Contact:

Re: Custom Menu

#6 Post by CutlassBoardgame » Wed Sep 01, 2021 4:09 am

I'm not sure how to use viewports. I'm SUPER new to this.
Is there a way to add code in screens.rpy to add a slider bar to menus?
Image

Post Reply

Who is online

Users browsing this forum: Bing [Bot], miro4D2, Ocelot, _ticlock_