Here's the code (so far) for my new screens.rpy:
Code: Select all
screen say(who,what):
window:
id "sayBox"
style "sayBox_style"
##### if who has value, also display window id nameBox #####
if who is not None:
window:
id "nameBox"
style "nameBox_style"
text who id "who_s"
text what id "what"
style sayBox_style:
#anchor
xanchor 0
yanchor 0
#position
xpos 0
ypos 500
#size
xsize 500
ysize 200
style nameBox_style:
properties gui.text_properties("nameBox_style")
#anchor
xanchor 0
yanchor 0
#position
xpos 0
yoffset -50
#size
xsize 500
ysize None
background "#000000"
Code: Select all
init python:
gui.init(1280, 720)
define gui.nameBox_style_text_font = "RobotoCondensed-Bold.ttf"
Secondary question: How do I make it so that I can "define" a custom made text/window/frame through gui.rpy? Is properties gui.text_properties("nameBox_style") not the correct way to do it?
I really want to learn the engine thoroughly and not just modify variables since I'm eager to make a amazing things with it. Any help would be greatly appreciated.