Code: Select all
#Script.rpy
label start:
show screen s_name
$Bak="cafe (1).jpg"
$m_msg = []
$ msg_name = "sDextra"
pause
python:
msg( "Pikachu", who=True )
msg("Charmander")
return
#Screen code
init python:
style.txt_base = Style(style.default)
def msg( personName, who=False, Tbox = False):
store.m_msg.append((who, personName, Tbox))
renpy.restart_interaction()
renpy.pause()
screen s_name:
frame background Bak:
frame background None :
viewport:
mousewheel True
vbox spacing 15:
for message in m_msg:
$who, personName = message
$ xgn = 0.0 if who else 6.0
button xalign xgn xmaximum 580 xpadding 20 ypadding 10:
text "%s"%(personName)
frame background "%s"%(Tbox):
What I want to do: If you check out the thread I've posted, it has a pic of what my screen should (somewhat) look like. I'm trying to add a name above every text message. So, in the code above, 'Pikachu' is the name, and in the textbox I'm trying to create I'll add text later.