Most of these screens have simple stuff like "text", for example:
Code: Select all
screen gameinfo():
modal True
add "gui/custom/picture1.png" xalign 0.5
frame:
background "gui/custom/blackshade5.png"
pos (530, 723)
maximum (870, 250)
vbox:
text "Tutorial" xalign 0.5 color "#E1D425" font "gui/fonts/Merienda-Regular.ttf"
text "Tutorial text." size 23
text "More tutorial text." size 23
textbutton "Close" background "#000000" xalign 0.5 yalign 0.4 action Hide ("gameinfo")renpy.variant("small") works but that's a lot of duplicates
I tried making a new style with renpy.variant("small") and changing the size there like this:
Code: Select all
style newstyle:
if renpy.variant("small"):
size 45
else:
size 23
end of line expected.
if renpy.variant("small"):
Would appreciate any clues.