(SOLVED) Aligning Names in Namebox
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.
-
- Newbie
- Posts: 19
- Joined: Sun Feb 18, 2018 6:12 pm
- Contact:
(SOLVED) Aligning Names in Namebox
Hello,
I've been having a spot of trouble with my characters' names. I know I can change the x and y axis of where I may place my names in the Namebox, but they seem to be anchored to the center. As in, a longer name will always appear farther left and right than a shorter name.
I would like to have the first letter of names anchored, so that they will only expand to the right if the names get longer.
Thank you for your time.
I've been having a spot of trouble with my characters' names. I know I can change the x and y axis of where I may place my names in the Namebox, but they seem to be anchored to the center. As in, a longer name will always appear farther left and right than a shorter name.
I would like to have the first letter of names anchored, so that they will only expand to the right if the names get longer.
Thank you for your time.
Last edited by RoboKnight on Sun Feb 18, 2018 11:57 pm, edited 1 time in total.
- warmsundae
- Regular
- Posts: 61
- Joined: Tue Feb 24, 2015 9:51 pm
- Skype: electriclan
- Soundcloud: lanterny
- Location: korea
- Contact:
Re: Aligning Names in Namebox
have you tried changing the xalign to 0.0? you can implement it just as you would xpos and ypos.
-
- Regular
- Posts: 78
- Joined: Thu Feb 08, 2018 7:57 am
- Contact:
Re: Aligning Names in Namebox
In my experience the names are left aligned. Have you changed the say screen at all?
-
- Newbie
- Posts: 19
- Joined: Sun Feb 18, 2018 6:12 pm
- Contact:
Re: Aligning Names in Namebox
If I change the Xalign to 0.0, then the names stick out of the Namebox (it is diamond shaped)
- Draziya
- Regular
- Posts: 70
- Joined: Sun Nov 26, 2017 8:50 am
- Completed: this was for you. [NaNoRenO 19], Acetylene [AceJam19], Ah!! My Roommate is a Succubus Hellbent on World [MonJam 18], I Don't Have A Clue [QRMJam 18], Cautionary Tale [NaNoRenO 18], OP Dodge Cross [GGJ 18], Acetone [AceJam 18]
- Projects: I'm a love interest in my childhood friend's reverse harem!!
- Organization: Watercress
- itch: Drazillion
- Contact:
Re: Aligning Names in Namebox
I'm a bit confused. Couldn't you then use xpos and ypos to move the now left aligned names until they fit into the Namebox?
-
- Newbie
- Posts: 19
- Joined: Sun Feb 18, 2018 6:12 pm
- Contact:
- LateWhiteRabbit
- Eileen-Class Veteran
- Posts: 1867
- Joined: Sat Jan 19, 2008 2:47 pm
- Projects: The Space Between
- Contact:
Re: Aligning Names in Namebox
You can always align the names to the namebox individually when you define the character. For instance:
Just experiment and set the namebox_xalign value to whatever works best for the character's name.
Code: Select all
define b = Character("Bob", namebox_xalign=0.74)
-
- Newbie
- Posts: 19
- Joined: Sun Feb 18, 2018 6:12 pm
- Contact:
Re: Aligning Names in Namebox
Oh I didn't know you could do that. Thank you for the help!LateWhiteRabbit wrote: ↑Sun Feb 18, 2018 11:35 pm You can always align the names to the namebox individually when you define the character. For instance:
Just experiment and set the namebox_xalign value to whatever works best for the character's name.Code: Select all
define b = Character("Bob", namebox_xalign=0.74)
Who is online
Users browsing this forum: Google [Bot], snotwurm