Hi, I'm not sure how to phrase the title but basically I'm working on a game with a text message feature.
Currently, I'm having problems displaying the text message when it's drawn from the right. I'm doing this by basically using an hbox and having multiple vboxes in there for each text message.
This is the style of the vbox when the text is drawn from the left:
style.person = Style(style.default)
style.person.background = Frame("phone/frame3.png", 50, 50)
style.person.xpadding = 25
style.person.ypadding = 10
style.person.right_margin = 30
and this is for when it's from the right (this is the one with a problem):
style.self = Style(style.default)
style.self.background = Frame("phone/frame4.png", 50, 50)
style.self.xpadding = 25
style.self.ypadding = 10
style.self.left_margin = 90
style.self.box_reverse = True
I thought maybe using box_reverse might work but it doesn't. For some reason, the frame that I'm getting from the speaker on the right always seems draw from the left so it appears off centered....
An easier explanation would be the two pictures I've attached below.
Hope that makes sense >__<! Thank you in advance.
Problem displaying textbox for phone message feature
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
-
- Regular
- Posts: 51
- Joined: Tue Aug 23, 2011 10:19 am
- Contact:
Problem displaying textbox for phone message feature
- Attachments
I have returned after a long time away. Working on a small project, hope I'll be able to show it on here soon! =D
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: Problem displaying textbox for phone message feature
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
-
- Regular
- Posts: 51
- Joined: Tue Aug 23, 2011 10:19 am
- Contact:
Re: Problem displaying textbox for phone message feature
This is exactly what I was looking for! Thank you so much!
I have returned after a long time away. Working on a small project, hope I'll be able to show it on here soon! =D
Who is online
Users browsing this forum: No registered users