Ren'Py: Hamburger Quick Menu (implementation)


Since I got asked about the hamburger for the quick menu buttons, I'm sharing my code here. As it's not so long ago that I've started learning Ren'Py, I can't guarantee that it is the best way to implement this. I mainly pieced it together from different topics on Ren'Py forums on how to implement a GUI with extra screen popping out. The logic can be used for any type of screen element.

The edits are done in screens.rpy, and mainly consist of four parts:

[1] Add boolean variable to remember the state of the hamburger (whether it is open or closed). Do this at the start of script.

[2] Editing the existing screen quick_menu()

[3] Add a new screen with the content in the hamburger, in this case: the quick buttons. I called this screen quick_buttons().

[4] style definitions for the buttons








Files

TheSnowpersonDemo-1.0.1-mac.zip 142 MB
Jan 03, 2022
TheSnowpersonDemo-1.0.1-linux.tar.bz2 148 MB
Jan 03, 2022
TheSnowpersonDemo-1.0.1-win.zip 159 MB
Jan 03, 2022

Get The Snowperson [Demo, Winter VN Jam 2021]

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.