Name tag customization
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.
Name tag customization
Hello,
Is there any way I can place the name tag in "front" of the text box?
I'm attaching a screenshot of how my text box looks now. You can see that the name tag image is behind the text box image. I tried different approaches but none seems to work.
Thanks
Is there any way I can place the name tag in "front" of the text box?
I'm attaching a screenshot of how my text box looks now. You can see that the name tag image is behind the text box image. I tried different approaches but none seems to work.
Thanks
Re: Name tag customization
If the name and the text box are being showed are on two different screens then you can use zorder to sort them:
https://www.renpy.org/doc/html/screens. ... -statement
https://www.renpy.org/doc/html/screens. ... -statement

If we are what we repeatedly do, then good coding is not an act, but a habit
- zankizuna
- Veteran
- Posts: 416
- Joined: Fri May 04, 2012 2:20 am
- Projects: Softwar
- Deviantart: raseru09
- itch: ZanKizuna
- Location: Manilaaaaaaaa
- Contact:
Re: Name tag customization
Maybe in the code, the textbox should be shown first , then the nametag.
Re: Name tag customization
They are in the same screen.Iylae wrote:If the name and the text box are being showed are on two different screens then you can use zorder to sort them:
https://www.renpy.org/doc/html/screens. ... -statement
Nothing in the code allows me to do that.zankizuna wrote:Maybe in the code, the textbox should be shown first , then the nametag.
I'm attaching my code (options.rpy) where I'm defining the images for the text box and the name tag:
Code: Select all
## These settings let you customize the window containing the
## dialogue and narration, by replacing it with an image.
## The background of the window. In a Frame, the two numbers
## are the size of the left/right and top/bottom borders,
## respectively.
style.window.background = "textbox.png"
#style.say_who_window.background = Frame("nametag.png", 100, 100)
style.say_who_window.background = "nametag.png"
#style.say_who_window.background = "textbox.png"
style.say_who_window.xalign = 1.0
style.say_who_window.yalign = 1.0
style.say_who_window.xpos = 1390
style.say_who_window.ypos = 0
style.say_who_window.yanchor = -50
style.say_who_window.left_padding = 15
style.say_who_window.top_padding = 15
style.say_who_window.right_padding = 15
style.say_who_window.bottom_padding = 15
style.say_who_window.xminimum = 220
style.say_who_window.yminimum = 75Thank you
Re: Name tag customization
So.. I have figured a way around that problem, but there is one thing that I'm still struggling with.
It is the position of the character's name.
I have tried different approaches but no success what so ever.
Any one knows how I can change the alignment or the position?
I tried but it didn't work.
It is the position of the character's name.
I have tried different approaches but no success what so ever.
Any one knows how I can change the alignment or the position?
I tried but it didn't work.
style.say_label.xalign = 0.5
- trooper6
- Lemma-Class Veteran
- Posts: 3712
- Joined: Sat Jul 09, 2011 10:33 pm
- Projects: A Close Shave
- Location: Medford, MA
- Contact:
Re: Name tag customization
How to have the name box in front of the text box was answered here:
viewtopic.php?f=8&t=25117&hilit=order+reverse#p309221
viewtopic.php?f=8&t=25117&hilit=order+reverse#p309221
A Close Shave:
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
*Last Thing Done (Aug 17): Finished coding emotions and camera for 4/10 main labels.
*Currently Doing: Coding of emotions and camera for the labels--On 5/10
*First Next thing to do: Code in all CG and special animation stuff
*Next Next thing to do: Set up film animation
*Other Thing to Do: Do SFX and Score (maybe think about eye blinks?) Check out My Clock Cookbook Recipe: http://lemmasoft.renai.us/forums/viewto ... 51&t=21978
Re: Name tag customization
Thank you so much. This is what I was looking for!trooper6 wrote:How to have the name box in front of the text box was answered here:
viewtopic.php?f=8&t=25117&hilit=order+reverse#p309221
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]

