[Tutorial] Customizing Menus

A place for Ren'Py tutorials and reusable Ren'Py code.
Forum rules
Do not post questions here!

This forum is for example code you want to show other people. Ren'Py questions should be asked in the Ren'Py Questions and Announcements forum.
Message
Author
User avatar
Kokoro Hane
Eileen-Class Veteran
Posts: 1236
Joined: Thu Oct 27, 2011 6:51 pm
Completed: 30 Kilowatt Hours Left, The Only One Girl { First Quarter }, An Encounter ~In The Rain~, A Piece of Sweetness, Since When Did I Have a Combat Butler?!, Piece by Piece, +many more
Projects: Fateful Encounter, Operation: Magic Hero
Organization: Tofu Sheets Visual
Deviantart: kokoro-hane
itch: tofu-sheets-visual
Contact:

Re: [Tutorial] Customizing Menus

#106 Post by Kokoro Hane »

For the customizing Menu Choices (I am assuming this is for the "menu" statement) is there a way I could command it to (and only for that individual menu, not for the whole game) be on to the side (like the left), and resize it where it's not across your whole screen like usual?
PROJECTS:
Operation: Magic Hero [WiP]
Piece By Piece [COMPLETE][Spooktober VN '20]
RE/COUNT RE:VERSE [COMPLETE][RPG]
Since When Did I Have a Combat Butler?! [COMPLETE][NaNoRenO2020+]
Crystal Captor: Memory Chronicle Finale [COMPLETE][RPG][#1 in So Bad It's Good jam '17]

But dear God, You're the only North Star I would follow this far
Owl City "Galaxies"

apricotorange
Veteran
Posts: 479
Joined: Tue Jun 05, 2012 2:01 am
Contact:

Re: [Tutorial] Customizing Menus

#107 Post by apricotorange »

Please ask general questions in http://lemmasoft.renai.us/forums/viewforum.php?f=8 ; they're likely to get lost here.

If you're writing a one-off menu which has an unusual look, it's probably simplest to write it as a screen in screen language; see http://lemmasoft.renai.us/forums/viewto ... 51&t=14237 and http://www.renpy.org/doc/html/screens.html . If you need different menu screens in different chapters or something like that, you can also customize "screen choice" so it changes based on a global variable.

CharlieTheMad256
Newbie
Posts: 12
Joined: Sat Feb 02, 2013 10:57 am
Projects: The Wind Whisperer (name in progress aka, might change the name)
Location: England
Contact:

Re: [Tutorial] Customizing Menus

#108 Post by CharlieTheMad256 »

Hey, I'm having trouble with the main menu, every time I try to load, this comes up
Expected statement.

imagemap -> :

What is wrong?

Giovedi
Regular
Posts: 147
Joined: Sun Sep 09, 2012 6:20 am
Contact:

Re: [Tutorial] Customizing Menus

#109 Post by Giovedi »

I hate to ask such a hassling question, but those two screencaps in the OP that're broken links now... would you consider taking new ones? I'm too dimwitted to understand the example sans visual representation. :'D

User avatar
Talann
Regular
Posts: 132
Joined: Thu May 09, 2013 12:02 pm
Projects: Shooting Stars, REBORN
Contact:

Re: [Tutorial] Customizing Menus

#110 Post by Talann »

You, my friend, are a life saver!

Elmiwisa
Veteran
Posts: 476
Joined: Sun Jul 21, 2013 8:08 am
Contact:

Re: [Tutorial] Customizing Menus

#111 Post by Elmiwisa »

Can you also add in to the tutorial something about making choice that already get chosen previously to appear in different colour? It is a standard feature in many VN after all, and yet we rarely see it in a Ren'Py game. :idea:

Lyraevi
Newbie
Posts: 4
Joined: Mon Jul 26, 2010 8:13 am
Contact:

Re: [Tutorial] Customizing Menus

#112 Post by Lyraevi »

Really nice tutorial, thank you! It was very helpful!
There is only 2 more things, I'd like to know about custom menus:
1. How to make a custom load/save menu with imagemaps?
2. How to make a custom preferences menu with imagemaps?
(Because my custom menu really looks different then the default renpy menu, and i can't cutomise it with only styling.)

Can anyone help me?

User avatar
AERenoir
Veteran
Posts: 320
Joined: Fri May 27, 2011 8:23 pm
Contact:

Re: [Tutorial] Customizing Menus

#113 Post by AERenoir »

Lyraevi wrote:Really nice tutorial, thank you! It was very helpful!
There is only 2 more things, I'd like to know about custom menus:
1. How to make a custom load/save menu with imagemaps?
2. How to make a custom preferences menu with imagemaps?
(Because my custom menu really looks different then the default renpy menu, and i can't cutomise it with only styling.)

Can anyone help me?
Go here: http://lemmasoft.renai.us/forums/viewto ... 51&t=14237

Lyraevi
Newbie
Posts: 4
Joined: Mon Jul 26, 2010 8:13 am
Contact:

Re: [Tutorial] Customizing Menus

#114 Post by Lyraevi »

Thank you very much! *.*

User avatar
rabcor
Regular
Posts: 81
Joined: Sun Mar 17, 2013 3:07 pm
Projects: None (Need a programmer?)
Organization: Cestarian Games
Contact:

Re: [Tutorial] Customizing Menus

#115 Post by rabcor »

Let me just worship you for a few seconds...

Thanks for all your great, detailed tutorials! :D They're really helpful, and i don't think they could be any better than they are even if i'd written them myself!! (I wrote this :oops: just for reference for how writes i get all serious with look like, i'm getting a lot of favorites and good ratings for it too)

A damn shame you haven't been active around here for nearly 2 years, hope you'll come back someday :mrgreen:

@Giovedi =( like i said s/he's been inactive for a long while now, but maybe a mod/admin could fix this.
@Elmiwisa interesting point, i imagine this should be doable with variables, the persistent data should be able to hold this information... hmm... well, i'll look into it later.

champignonkinoko
Regular
Posts: 61
Joined: Sun Sep 07, 2014 8:51 pm
Contact:

Re: [Tutorial] Customizing Menus

#116 Post by champignonkinoko »

I'll be doing some worshipping as well...

Thanks for posting this. Still useful after 3 years! One of the few tutorial posts that newbies could actually follow from start to end (especially that zip file download). Thank YOU!!

SecretGuitar1
Newbie
Posts: 6
Joined: Mon Jan 12, 2015 11:37 am
Projects: Tales of Yardora, Helen's Creek
Tumblr: Akiyo Kawaii
Deviantart: SecretGuitar1
Location: The Netherlands
Contact:

Re: [Tutorial] Customizing Menus

#117 Post by SecretGuitar1 »

Great tutorial! :)

But I encountered an error when I began making an imagemap section for the main menu.

I have the ground and hover images, and also the coördinates right where they need to be.
But when I lauched the game, and enter the main menu, it shows a distortion on the places I used for coördinates.
Except for the Quit button, and that one doesn't even works

I chose to only have a Start, Load and Quit button for the main menu
Idle
Idle
Hover
Hover
In game
In game

User avatar
Aleema
Lemma-Class Veteran
Posts: 2677
Joined: Fri May 23, 2008 2:11 pm
Organization: happyB
Tumblr: happybackwards
Contact:

Re: [Tutorial] Customizing Menus

#118 Post by Aleema »

Try deleting your cache. If that doesn't work, post your code.

SecretGuitar1
Newbie
Posts: 6
Joined: Mon Jan 12, 2015 11:37 am
Projects: Tales of Yardora, Helen's Creek
Tumblr: Akiyo Kawaii
Deviantart: SecretGuitar1
Location: The Netherlands
Contact:

Re: [Tutorial] Customizing Menus

#119 Post by SecretGuitar1 »

Aleema wrote:Try deleting your cache. If that doesn't work, post your code.
OMG Thank you! <3

Why was that thing there even in the first place?

Nova Alamak
Regular
Posts: 71
Joined: Sun Jun 08, 2014 1:45 pm
Contact:

Re: [Tutorial] Customizing Menus

#120 Post by Nova Alamak »

My screen preferences area mentioned in the tutorial for customizing menus via styles doesn't look anything like the one in the example.

Code: Select all

init -2:
    style pref_frame:
        xfill True
        xmargin 5
        top_margin 5

    style pref_vbox:
        xfill True

    style pref_button:
        size_group "pref"
        xalign 1.0

    style pref_slider:
        xmaximum 192
        xalign 1.0

    style soundtest_button:
        xalign 1.0
I've never edited it either. Is there a more up-to-date version of this tutorial? I'm trying not to do an imagemap for my options menu.

Post Reply

Who is online

Users browsing this forum: Donmai