[Solved]How can I make the menu text Choice bigger?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

[Solved]How can I make the menu text Choice bigger?

#1 Post by stwkun »

I used

menu:
"op A"

"op B"

I want the text "op A" and "op B" appears bigger, How can i do it?
Last edited by stwkun on Thu Jun 19, 2014 9:00 am, edited 1 time in total.

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: How can I make the menu text Choice bigger?

#2 Post by OokamiKasumi »

stwkun wrote:I used

Code: Select all

menu:
  "op A":
        jump a
  "op B":
        jump b
I want the text "op A" and "op B" appears bigger, How can i do it?
Go to screens.rpy, and under screen choice: look for:

Code: Select all

    style menu_choice is button_text:
        clear
Change it to:

Code: Select all

    style menu_choice is button_text:
        size 24
You can add lots of other things too such as:

Code: Select all

    style menu_choice is button_text:
        font "fo/PALE1.TTF" # The /fo means that the font is in a folder called fo.
        size 24
        xalign 0.5
        yalign 0.5
        color "#cc9966" # text color
        outlines [(1, "#330000", 0, 0)] 
        hover_color "#ffffcc" #light
        hover_outlines [(1, "#663300", 0, 0)] 
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
stwkun
Regular
Posts: 82
Joined: Wed Jan 02, 2013 7:57 pm
Organization: Stw Projects
Contact:

Re: How can I make the menu text Choice bigger?

#3 Post by stwkun »

Thanks a lot of OokamiKasumi :-)

User avatar
OokamiKasumi
Eileen-Class Veteran
Posts: 1779
Joined: Thu Oct 14, 2010 3:53 am
Completed: 14 games released -- and Counting.
Organization: DarkErotica Games
Deviantart: OokamiKasumi
Location: NC, USA
Contact:

Re: How can I make the menu text Choice bigger?

#4 Post by OokamiKasumi »

stwkun wrote:Thanks a lot of OokamiKasumi :-)
I'm glad I could help. ♥
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed: For ALL my completed games visit: DarkErotica Games

"No amount of great animation will save a bad story." -- John Lasseter of Pixar

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How can I make the menu text Choice bigger?

#5 Post by tiya_nofurita »

I didn't find statement like that, but I found something similar

Code: Select all

style.menu_choice.clear()
Any idea how to change with that? Because if I copy paste your code directly I'd get an error message
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
saguaro
Miko-Class Veteran
Posts: 560
Joined: Sun Feb 12, 2012 9:17 am
Completed: Locked-In, Sunrise, The Censor
Organization: Lucky Special Games
itch: saguarofoo
Location: USA
Contact:

Re: How can I make the menu text Choice bigger?

#6 Post by saguaro »

OokamiKasumi is using the new style system introduced in Ren'Py 6.17. If you're using an older version they won't work.

http://www.renpy.org/doc/html/style.htm ... -statement

style.menu_choice.clear() is a function for the older Python styling that removes the style properties from an object.

http://www.renpy.org/doc/html/style.htm ... les-python

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How can I make the menu text Choice bigger?

#7 Post by tiya_nofurita »

Huuuum, I use Ren'Py latest version (I think it's 6.17.3) but I still using old code because I want to stuck into something like this

Code: Select all

screen choice:

    window: 
        style "menu_window"        
        xalign 0.5
        yalign 0.5
        
        vbox:
            style "menu"
            spacing 10
            
            for caption, action, chosen in items:
                 if action:
                        if not chosen: 
                            button:
                                action action
                                style "menu_choice_button"
       
                                text caption style "menu_choice"
                        elif chosen == True:
                            button:
                                action action
                                style "menu_choice_chosen_button"
       
                                text caption style "menu_choice_chosen"
                

init -2 python:
    config.narrator_menu = True
    
    style.menu_window.set_parent(style.default)
    style.menu_choice.set_parent(style.button_text)
    style.menu_choice_button.set_parent(style.button)
    style.menu_choice_button.xminimum = int(config.screen_width * 0.97)
    style.menu_choice_button.xmaximum = int(config.screen_width * 0.97)
    style.menu_choice_button.yminimum = int(config.screen_width * 0.08)
    style.menu_choice_button.ymaximum = int(config.screen_width * 0.08)
    
    #Normal
    style.menu_choice_button.background =  Frame("gui/button_hover.png",20,20)
    style.menu_choice_button.hover_background =  Frame("gui/button_idle.png",20,20)
    style.menu_choice_chosen_button.background = Frame("gui/button_hover.png",20,20)
    style.menu_choice_chosen_button.hover_background = Frame("gui/button_idle.png",20,20)
        
    ##Modifies the Menu Choice's Text
    style.menu_choice.color = "FFFFFF"
    style.menu_choice_chosen.color = "999999"
basically the idea is to make the already chosen choice "grayed out" to make the player....well, easier to tell which route has been played.
Is there no other way to change the text size in my old code?
Or is there any way to implement the same idea into the new system of Python?

Very much appreciated
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
saguaro
Miko-Class Veteran
Posts: 560
Joined: Sun Feb 12, 2012 9:17 am
Completed: Locked-In, Sunrise, The Censor
Organization: Lucky Special Games
itch: saguarofoo
Location: USA
Contact:

Re: How can I make the menu text Choice bigger?

#8 Post by saguaro »


User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How can I make the menu text Choice bigger?

#9 Post by tiya_nofurita »

Uhm, I know it. My previous code has it written already.
With the new styles I applied, I successfully change the size of the text, however, I can't insert my frame (something like this on my previous code)

Code: Select all

style.menu_choice_button.background =  Frame("gui/button_hover.png",20,20)
style.menu_choice_button.hover_background =  Frame("gui/button_idle.png",20,20)
style.menu_choice_chosen_button.background = Frame("gui/button_hover.png",20,20)
style.menu_choice_chosen_button.hover_background = Frame("gui/button_idle.png",20,20)
I have no idea what kind of syntax I should write to insert the Frame.
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

User avatar
tiya_nofurita
Miko-Class Veteran
Posts: 669
Joined: Fri Jun 22, 2012 7:23 pm
Completed: ALLBLACK Phase 1, Heart's Blight, Last Rx., EDDA Cafe, Kohana, Half Moon
Projects: ALLBLACK Phase 2
Organization: VN Project Indonesia
Deviantart: SECONDARY-TARGET
itch: NSAID
Location: I can be everywhere
Discord: 3,4-Methylendioxymethamphetamine#4886
Contact:

Re: How can I make the menu text Choice bigger?

#10 Post by tiya_nofurita »

Hm, after several days of absence from my work, suddenly I have some idea, why don't we just stuck to old and manual method? :lol: I can't believe this is so simple lol.

Code: Select all

    
    t "What would you choose?"
    menu:
        "{size=+5}Chase her{/size}":
            jump chase
        "{size=+5}Stay silent{/size}":
            jump stand
Webtoon

"For what reason I live?"
Image

---
Completed project:


"What will you see when you are dead?"

Image

MY VISUAL NOVEL

Post Reply

Who is online

Users browsing this forum: No registered users