How to make a "character name" bold?
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.
-
TheOtherNewGuy
- Regular
- Posts: 26
- Joined: Wed Nov 16, 2016 2:53 am
- Contact:
How to make a "character name" bold?
Sry if this has been asked many times, i'm in the middle of reading the renpy documentation from start to finish but i figured i ask.
I just recently updated renpy from 6.99.4 to 6.99.11. I started a new project and it seems that the names of characters above text is no longer bold. Also i think the way outlines and shadows are applied to text have changed as well. Anyone have this problem?
I just recently updated renpy from 6.99.4 to 6.99.11. I started a new project and it seems that the names of characters above text is no longer bold. Also i think the way outlines and shadows are applied to text have changed as well. Anyone have this problem?
-
mard
- Regular
- Posts: 50
- Joined: Thu Nov 03, 2016 3:38 am
- Location: Standing right behind you.
- Contact:
Re: How to make a "character name" bold?
This, https://www.renpy.org/doc/html/dialogue ... er-objects
and this, https://www.renpy.org/doc/html/style_pr ... properties
will give you your answer.
Heres an example of what it would look like
And heres the result
http://i.imgur.com/HgmkF3y.png
Image is too big to post so you'll have to open it in a seperate tab.
I set bold to False, if you set it to True it'll show up as bold.
and this, https://www.renpy.org/doc/html/style_pr ... properties
will give you your answer.
Heres an example of what it would look like
Code: Select all
define e = Character("Eileen", who_bold=False, who_italic=True, what_font="GenR102.ttf", what_prefix='"', what_suffix='"')http://i.imgur.com/HgmkF3y.png
Image is too big to post so you'll have to open it in a seperate tab.
I set bold to False, if you set it to True it'll show up as bold.
Tend to be a bit quiet, but will help where I can.
Enjoy the drinks folks.
Enjoy the drinks folks.
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: How to make a "character name" bold?
If you want all the characters names to be in bold letters, you can try:
Code: Select all
style say_label:
bold TrueNo, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
-
TheOtherNewGuy
- Regular
- Posts: 26
- Joined: Wed Nov 16, 2016 2:53 am
- Contact:
Re: How to make a "character name" bold?
@mard
thanks for the links. but it's amazing how I don't get a lot of code explanations, pretty much with every language I've tried to get into. I wish everything was more like. If you want to make a character name bold then type this. I'll keep looking this over and hope something clicks. do you need to have all those arguments filled for the effect to work? I tried define e = Character("Eileen", who_bold=True) but that threw me an error.
@donmai
thanks that seemed to work. If you feel like answering, is there a similar way to create outlines and shadows? (still in the middle of reading through the documentation.)
thanks for the links. but it's amazing how I don't get a lot of code explanations, pretty much with every language I've tried to get into. I wish everything was more like. If you want to make a character name bold then type this. I'll keep looking this over and hope something clicks. do you need to have all those arguments filled for the effect to work? I tried define e = Character("Eileen", who_bold=True) but that threw me an error.
@donmai
thanks that seemed to work. If you feel like answering, is there a similar way to create outlines and shadows? (still in the middle of reading through the documentation.)
-
mard
- Regular
- Posts: 50
- Joined: Thu Nov 03, 2016 3:38 am
- Location: Standing right behind you.
- Contact:
Re: How to make a "character name" bold?
It's a lot to take in. When it comes to reading the documentation, read through what you're focusing on once, then step back and look over a few scripts. After that, come back after a day or two and read it again. Basically you want to let the information sink in, then look at it again. Doing it this way will save you a lot of stress.
At any rate, this shouldn't return any errors. Just remember to put it in script.rpy, within an init block.
If you put it in screens.rpy, options.rpy, or gui.rpy it'll return an error.
At any rate, this
Code: Select all
define e = Character("Eileen", who_bold=True)If you put it in screens.rpy, options.rpy, or gui.rpy it'll return an error.
Tend to be a bit quiet, but will help where I can.
Enjoy the drinks folks.
Enjoy the drinks folks.
-
TheOtherNewGuy
- Regular
- Posts: 26
- Joined: Wed Nov 16, 2016 2:53 am
- Contact:
Re: How to make a "character name" bold?
k ill be sure to do that. thanks for the reply. I'm also using renpy 6.99.11 if that matters.mard wrote:It's a lot to take in. When it comes to reading the documentation, read through what you're focusing on once, then step back and look over a few scripts. After that, come back after a day or two and read it again. Basically you want to let the information sink in, then look at it again. Doing it this way will save you a lot of stress.
At any rate, thisshouldn't return any errors. Just remember to put it in script.rpy, within an init block.Code: Select all
define e = Character("Eileen", who_bold=True)
If you put it in screens.rpy, options.rpy, or gui.rpy it'll return an error.
Edit: tried it again. looks like that code works as well. maybe i made a typo before. Gonna look through the documentation for shadows and outlines now.
-
mard
- Regular
- Posts: 50
- Joined: Thu Nov 03, 2016 3:38 am
- Location: Standing right behind you.
- Contact:
Re: How to make a "character name" bold?
For shadows and outlines, you'll want to look here. https://www.renpy.org/doc/html/style_pr ... y-outlines
Tend to be a bit quiet, but will help where I can.
Enjoy the drinks folks.
Enjoy the drinks folks.
-
TheOtherNewGuy
- Regular
- Posts: 26
- Joined: Wed Nov 16, 2016 2:53 am
- Contact:
Re: How to make a "character name" bold?
Awesome. K the outline was pretty straight forward... phew. thanks for pointing me in the right direction.mard wrote:For shadows and outlines, you'll want to look here. https://www.renpy.org/doc/html/style_pr ... y-outlines
If you wanted both an outline and a shadow, how would one write the code. I tried experimenting, but.... yeah.
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: How to make a "character name" bold?
Something like That will give you black outlines and a black shadow.
If you prefer to use style, which will affect all characters names in your game, then you would only add more style properties to the style block:You can read about styles here: https://www.renpy.org/doc/html/style.html#styles You will find a list of text style properties here: https://www.renpy.org/doc/html/style_pr ... properties
Code: Select all
define e = Character("Eileen", who_bold=True, who_outlines=[(1, "#000", 1, 1), (1, "#000", 0, 0)])If you prefer to use style, which will affect all characters names in your game, then you would only add more style properties to the style block:
Code: Select all
style say_label:
bold True
outlines [(1, "#000", 0, 0)]
drop_shadow (1, 1)
drop_shadow_color '#424242' # that will give you a gray drop shadowNo, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
-
TheOtherNewGuy
- Regular
- Posts: 26
- Joined: Wed Nov 16, 2016 2:53 am
- Contact:
Re: How to make a "character name" bold?
Awesome. thank you.Donmai wrote:Something likeThat will give you black outlines and a black shadow.Code: Select all
define e = Character("Eileen", who_bold=True, who_outlines=[(1, "#000", 1, 1), (1, "#000", 0, 0)])
If you prefer to use style, which will affect all characters names in your game, then you would only add more style properties to the style block:You can read about styles here: https://www.renpy.org/doc/html/style.html#styles You will find a list of text style properties here: https://www.renpy.org/doc/html/style_pr ... propertiesCode: Select all
style say_label: bold True outlines [(1, "#000", 0, 0)] drop_shadow (1, 1) drop_shadow_color '#424242' # that will give you a gray drop shadow
Thank you for the links, but I don't know. Still reading the documentation and nothing is clicking, as usual with me and coding.
Where did you even find out that there was a "drop_shadow" command? I didnt even see that in the styles section of the documentation.
- Donmai
- Eileen-Class Veteran
- Posts: 1919
- Joined: Sun Jun 10, 2012 1:45 am
- Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
- Projects: Slumberland
- Location: Brazil
- Contact:
Re: How to make a "character name" bold?
Good question, and the answer is "I don't know exactly"TheOtherNewGuy wrote:Where did you even find out that there was a "drop_shadow" command?
I don't even know if the "drop_shadow" style property is documented or not, but I know it's been around for some time. I just seen people using it. I learn a lot seeing other people's programming examples. Look here, for example: viewtopic.php?p=225925#p225925
Notice that the script is using the old style syntax, but the drop_shadow and the drop_shadow_color properties are there.
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)
TOIRE NO HANAKO (A Story About Fear)
Who is online
Users browsing this forum: _ticlock_
