[Solved]How can I make the menu text Choice bigger?
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.
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.
[Solved]How can I make the menu text Choice bigger?
I used
menu:
"op A"
"op B"
I want the text "op A" and "op B" appears bigger, How can i do it?
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.
- 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?
Go to screens.rpy, and under screen choice: look for:stwkun wrote:I usedI want the text "op A" and "op B" appears bigger, How can i do it?Code: Select all
menu: "op A": jump a "op B": jump b
Code: Select all
style menu_choice is button_text:
clear
Code: Select all
style menu_choice is button_text:
size 24
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:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Re: How can I make the menu text Choice bigger?
Thanks a lot of OokamiKasumi
- 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?
I'm glad I could help. ♥stwkun wrote:Thanks a lot of OokamiKasumi
Ookami Kasumi ~ Purveyor of fine Smut.
Most recent Games Completed:
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
Most recent Games Completed:
- The Walk[Psychological][NanoWinter] ~ PG New!
- Trap! [ModernFantasy][VN] ~ PG16
- The Adventures of Prince Ivan [Fant/Adv/VN] ~ PG
"No amount of great animation will save a bad story." -- John Lasseter of Pixar
- 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?
I didn't find statement like that, but I found something similar
Any idea how to change with that? Because if I copy paste your code directly I'd get an error message
Code: Select all
style.menu_choice.clear()
- 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?
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
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
- 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?
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
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
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"
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
- 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?
Uhm, I know it. My previous code has it written already.saguaro wrote:This should help: http://lemmasoft.renai.us/forums/viewto ... es#p295528
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)
- 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?
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? 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
Who is online
Users browsing this forum: No registered users