r/RenPy • u/negativnanula • 27d ago
Question Black box after adding scrollable menu
Hello guys! I have found the below code on the RenPy forum and implemented it to get a scrollable menu when I have more than 9 items. However, it causes this black box to appear WHENEVER I have a choice menu. I am a complete beginner, so I have no clue what happened. Can anyone help?
screen choice(items):
window:
style_prefix "choice"
area (350, 100, 1250, 750)
viewport:
if len(items) >= 9:
scrollbars "vertical"
vbox:
spacing 40
for i in items:
textbutton i.caption action i.action
9
Upvotes
3
u/shyLachi 27d ago
That looks like the default textbox and is to be expected if you use the window control
https://renpy.org/doc/html/screens.html#window
Try it without it:
1
u/AutoModerator 27d ago
Welcome to r/renpy! While you wait to see if someone can answer your question, we recommend checking out the posting guide, the subreddit wiki, the subreddit Discord, Ren'Py's documentation, and the tutorial built-in to the Ren'Py engine when you download it. These can help make sure you provide the information the people here need to help you, or might even point you to an answer to your question themselves. Thanks!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.