I'm studying screen language and trying to figure out how to handle formatting of text displayed via screen language.
For example, let's say I want to display a prompt / label ("What next?") above the menu options in the 'choice' screen:
Code: Select all
screen choice(items):
style_prefix "choice"
vbox:
label "What next?" xpos 0.5 xalign 0.5
spacing 5
for i in items:
textbutton i.caption action i.action
In the documentation (https://renpy.org/doc/html/screens.html) it says that the label statement also takes Position Style Properties, some of which I've already incorporated in the example. However, I can't seem to add any of the Text Style Properties. Assuming I can format this text, could someone please give me an example of the correct syntax.
One other question, how would I go about modifying this screen to accept an additional parameter? Can I just add an additional parameter to this screen's definition (such as "screen choice(items, newParam)? If so, how do I change my script / code to call this screen? Currently, I call menus via "renpy.menu_display()". Do I just add the additional parameter?
As always, thank you in advance!