How do I change the size and font of the style.say_who _window (name box) in my text history without using an imagemap? I can change the font and size of the text box easily like this:
Code: Select all
style.readback_text.color = "#fff"
style.readback_text.size = 18
And also, how do I customize the appearance of my dynamic character name (first player name & last player name) because it doesn't change at all, except if I write something inside the "", which ruins the code because that's the name that shows up instead of the custom player name.
Here is the code:
Code: Select all
define player_first_name = Character ("", color="#FF4277", font="fonts/Garogier.otf")
define player_last_name = ""
define player_name = ""
# Use [player_first_name], [player_last_name] and [player_name] when adding name to sentence.
label start:
"What's your full name?"
# The phrase in the brackets is the text that the game will display to prompt
# the player to enter the name they've chosen.
$ player_name = renpy.input("What's your full name?") or "Me"
# Check for no input in name is done here
$ player_name = player_name.strip()
# It may interfere with the splitting code if it strips space chars mid-string, need to check on that. If it's a problem use .rstrip() instead.
python:
if " " in player_name:
player_first_name,player_last_name = player_name.split(" ") # If no full name is provided (no space chars), the [player_first_name] and [player_last_name] will remain blank.
# Now the other characters in the game can greet the player.
"[player_first_name], don't forget to save your progress as you proceed."