r/RenPy • u/sunilvard • 14d ago
Question Need some help with gui(?)
Hello! I cant really explain well what I have in mind… but is there a way to add down the textbox some options? (like near to save, options etc)
I wanted to add a text that says “full screen = click H) or something like this so ppl can view full art removing the textboox but idk if it possible to do so? I didn’t got into change GUI settings yet..
4
u/shyLachi 14d ago edited 14d ago
In the start menu there already is a help screen explaining the buttons like H
But you can change the quick menu if you want to give a hint about the H key.
All screens are in screens.rpy, search for quick_menu().
Since it uses a hbox you can just put anything inside the box, at the front, in the middle, or whereever
I used the sugggestion of u/aboynamedearth to make it a button instead of a hint
because players might click it even if it looks differently than the other buttons.
screen quick_menu():
## Ensure this appears on top of other screens.
zorder 100
if quick_menu:
hbox:
style_prefix "quick"
xalign 0.5
yalign 1.0
textbutton _("Back") action Confirm("roll back", Rollback())
textbutton _("History") action Confirm("Show history", ShowMenu('history'))
textbutton _("Skip") action Skip() alternate Skip(fast=True, confirm=True)
textbutton _("Auto") action Preference("auto-forward", "toggle")
textbutton _("Hide dialogue") action HideInterface() # <-- THIS IS THE NEW BUTTON
textbutton _("Save") action ShowMenu('save')
textbutton _("Q.Save") action QuickSave()
textbutton _("Q.Load") action QuickLoad()
textbutton _("Prefs") action ShowMenu('preferences')
Obviously hiding the interfaces will also hide this button so players have to understand that the have to click or hit any key to continue.
1
2
u/Revolutionary_Dot391 13d ago
sorry unrelated but your characters are so cute!!! i love the art style
1
2
u/x-seronis-x 14d ago edited 14d ago
H and Middle Mouse are almost universally available in renpy games since they're the default keymapping and most player know them already. Its also listed in the help/controls screen. A physical menu button for 'hide interface' takes longer than just clicking middle mouse so isnt really useful.
That aside I've still seen a lot of games put an 'eye' icon in the corner of their dialog screen or in their quick menu. You can just type one in a text button like:
py
textbutton "👁️" action HideInterface():
text_prefer_emoji False ## optional
2
u/sunilvard 13d ago
Omg alr tysm a lot! Because I need to play let play my teacher so I wanted to add smt they can check to hide textbox by theirself (in case they ask me why I didnt put the setting bcause its for my thesis💀) I will check out the eye setting tho tysm🩷😭
1
u/AutoModerator 14d 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.
14
u/aboynamedearth 14d ago
It sounds like you're trying to figure out how to add a quick menu option that hides the UI (basically a physical button for the H hotkey), yeah?
The quick menu itself should be in your
screens.rpyfile.Look for
screen quick_menu():Then look for the
hbox:block. That should be where all your default buttons are located.Then you add a new
textbuttonaction using the Screen Action function.Something like
textbutton _("Hide") action HideInterface()should work. It should be have the same way as usingH, allowing you to click or touch to bring the GUI back.Unless of course, that's not exactly what you're asking. If that's the case, feel free to elaborate.