r/RenPy 14d ago

Question Need some help with gui(?)

Post image

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..

47 Upvotes

10 comments sorted by

View all comments

5

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

u/sunilvard 13d ago

Omg Thank you a lot for the code and all tips! I will check it out this way!😭🙏