menu:
uses a screen called choice
.# ---- screens.rpy ---
screen choice(items):
style_prefix "choice"
vbox:
for i in items:
textbutton i.caption action i.action
style
prefix is "choice"... following that down a bit, and you find these lines...# ---- screens.rpy ---
style choice_button is default:
properties gui.button_properties("choice_button")
style choice_button_text is default:
properties gui.button_text_properties("choice_button")
gui.rpy
....# ---- gui.rpy ---
define gui.choice_button_width = 1185
define gui.choice_button_height = None
define gui.choice_button_tile = False
define gui.choice_button_borders = Borders(150, 8, 150, 8)
define gui.choice_button_text_font = gui.text_font
define gui.choice_button_text_size = gui.text_size
define gui.choice_button_text_xalign = 0.5
define gui.choice_button_text_idle_color = "#cccccc"
define gui.choice_button_text_hover_color = "#ffffff"
define gui.choice_button_text_insensitive_color = "#444444"
define gui.choice_button_text_size = gui.text_size
.# ---- gui.rpy ---
## The size of normal dialogue text.
define gui.text_size = 33
gui.text_size
. Or just change it for menus only by altering gui.choice_button_text_size
.A perfect explanation. Thank you very much. As always, your help is exceptional.Themenu:
uses a screen calledchoice
.
It looks like this:
Python:# ---- screens.rpy --- screen choice(items): style_prefix "choice" vbox: for i in items: textbutton i.caption action i.action
Thestyle
prefix is "choice"... following that down a bit, and you find these lines...
Python:# ---- screens.rpy --- style choice_button is default: properties gui.button_properties("choice_button") style choice_button_text is default: properties gui.button_text_properties("choice_button")
So the button itself is linked to the gui properties "choice_button". Following that togui.rpy
....
Python:# ---- gui.rpy --- define gui.choice_button_width = 1185 define gui.choice_button_height = None define gui.choice_button_tile = False define gui.choice_button_borders = Borders(150, 8, 150, 8) define gui.choice_button_text_font = gui.text_font define gui.choice_button_text_size = gui.text_size define gui.choice_button_text_xalign = 0.5 define gui.choice_button_text_idle_color = "#cccccc" define gui.choice_button_text_hover_color = "#ffffff" define gui.choice_button_text_insensitive_color = "#444444"
The important line you care about isdefine gui.choice_button_text_size = gui.text_size
.
So...
Python:# ---- gui.rpy --- ## The size of normal dialogue text. define gui.text_size = 33
So if you want to change that size, you have the choice to alter the size for all text within the game by alteringgui.text_size
. Or just change it for menus only by alteringgui.choice_button_text_size
.
Thank you, very useful advice.Here's a tip, hover over an element you want to inspect and press Shif+i in the developer mode. That will show you elements, their styles, and where they are located in the files.
I was looking this up tonight, and the was the clearest, most concise answer I found.Themenu:
uses a screen calledchoice
.
It looks like this:
Python:# ---- screens.rpy --- screen choice(items): style_prefix "choice" vbox: for i in items: textbutton i.caption action i.action
Thestyle
prefix is "choice"... following that down a bit, and you find these lines...
Python:# ---- screens.rpy --- style choice_button is default: properties gui.button_properties("choice_button") style choice_button_text is default: properties gui.button_text_properties("choice_button")
So the button itself is linked to the gui properties "choice_button". Following that togui.rpy
....
Python:# ---- gui.rpy --- define gui.choice_button_width = 1185 define gui.choice_button_height = None define gui.choice_button_tile = False define gui.choice_button_borders = Borders(150, 8, 150, 8) define gui.choice_button_text_font = gui.text_font define gui.choice_button_text_size = gui.text_size define gui.choice_button_text_xalign = 0.5 define gui.choice_button_text_idle_color = "#cccccc" define gui.choice_button_text_hover_color = "#ffffff" define gui.choice_button_text_insensitive_color = "#444444"
The important line you care about isdefine gui.choice_button_text_size = gui.text_size
.
So...
Python:# ---- gui.rpy --- ## The size of normal dialogue text. define gui.text_size = 33
So if you want to change that size, you have the choice to alter the size for all text within the game by alteringgui.text_size
. Or just change it for menus only by alteringgui.choice_button_text_size
.
Where is the folder?Themenu:
uses a screen calledchoice
.
It looks like this:
Python:# ---- screens.rpy --- screen choice(items): style_prefix "choice" vbox: for i in items: textbutton i.caption action i.action
Thestyle
prefix is "choice"... following that down a bit, and you find these lines...
Python:# ---- screens.rpy --- style choice_button is default: properties gui.button_properties("choice_button") style choice_button_text is default: properties gui.button_text_properties("choice_button")
So the button itself is linked to the gui properties "choice_button". Following that togui.rpy
....
Python:# ---- gui.rpy --- define gui.choice_button_width = 1185 define gui.choice_button_height = None define gui.choice_button_tile = False define gui.choice_button_borders = Borders(150, 8, 150, 8) define gui.choice_button_text_font = gui.text_font define gui.choice_button_text_size = gui.text_size define gui.choice_button_text_xalign = 0.5 define gui.choice_button_text_idle_color = "#cccccc" define gui.choice_button_text_hover_color = "#ffffff" define gui.choice_button_text_insensitive_color = "#444444"
The important line you care about isdefine gui.choice_button_text_size = gui.text_size
.
So...
Python:# ---- gui.rpy --- ## The size of normal dialogue text. define gui.text_size = 33
So if you want to change that size, you have the choice to alter the size for all text within the game by alteringgui.text_size
. Or just change it for menus only by alteringgui.choice_button_text_size
.
Haa, it s now working for Corruption!Or alternatively (for simplicity) you could just press the Shift key and the A key at the same time and that will bring you up a simplified way to make the text bigger or smaller. You can also change the font although there are only 2 choices.
View attachment 3123044
Yeah, because it's a (relatively) recent addition to Ren'Py. Too recent regarding the version used by Corruption.Haa, it s now working for Corruption!
WHAT should i do?Yeah, because it's a (relatively) recent addition to Ren'Py. Too recent regarding the version used by Corruption.