[Solved] How to add text outline for specific scenes/text?

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
uttoriemi
Newbie
Posts: 2
Joined: Thu May 02, 2019 11:03 pm
Contact:

[Solved] How to add text outline for specific scenes/text?

#1 Post by uttoriemi » Thu May 02, 2019 11:24 pm

Hello, all. I'm a rather new VN dev so please go easy on me! :D

I was playing a visual novel called "Valentines Otome" (link, if you're interested =https://synokoria.itch.io/valentines-otome) and I noticed the creator(s), Synokoria, managed to use different outline colors for text based on its location (Main Menu vs Quick Menu, for example).

Below I've attached some photos of times when a different outline was used.
3.PNG
["Miranda" and "Name" have different color outlines.
2.PNG
This has a white outline around the game menu while the one below.... vvv
1.PNG
has black outline on the quick menu. ^^^

4.PNG
(You can reference this "normal" dialogue text outline to how it was changed for the scene above)

TL;DR

How do you set it up to where you can add outlines to only certain text within the GUI? (Global solutions or inline styles are both fine, whatever would be best)



Thanks for taking the time to read this and sorry for being lengthy! Let me know if I need to clarify any more, because I'm writing this after trying multiple bits of code and my brain is fried, I'm just so desperate for a solution :lol: :lol:
Last edited by uttoriemi on Fri May 03, 2019 5:42 pm, edited 1 time in total.

User avatar
Matalla
Regular
Posts: 199
Joined: Wed Mar 06, 2019 6:22 pm
Completed: The Lost Smile
itch: matalla-interactive
Location: Spain
Contact:

Re: How to add text outline for specific scenes/text?

#2 Post by Matalla » Fri May 03, 2019 1:19 am

Most of this, you just could do it with styles.

Search for the corresponding element you want to put an outline on. Use the style inspector if you have doubts by putting the mouse over the element and press shift+i.

Once you have identified it, find the style on the screen menu. For example, for the quick menu, it should be

Code: Select all

style quick_button_text:
Below you can add an outline property as explained here:
https://www.renpy.org/doc/html/style_pr ... y-outlines

For elements of the same type showing at the same time, like in your first example, you could use text tags, as explained here:
https://www.renpy.org/doc/html/text.htm ... tlinecolor

Or alternatively, define a second style (you can copy and paste the first one and change the name and the outline definition) and apply it.
Comunidad Ren'Py en español (Discord)
Honest Critique

uttoriemi
Newbie
Posts: 2
Joined: Thu May 02, 2019 11:03 pm
Contact:

Re: How to add text outline for specific scenes/text?

#3 Post by uttoriemi » Fri May 03, 2019 5:42 pm

Matalla wrote:
Fri May 03, 2019 1:19 am
Most of this, you just could do it with styles.

Search for the corresponding element you want to put an outline on. Use the style inspector if you have doubts by putting the mouse over the element and press shift+i.

Once you have identified it, find the style on the screen menu. For example, for the quick menu, it should be

Code: Select all

style quick_button_text:
Below you can add an outline property as explained here:
https://www.renpy.org/doc/html/style_pr ... y-outlines

For elements of the same type showing at the same time, like in your first example, you could use text tags, as explained here:
https://www.renpy.org/doc/html/text.htm ... tlinecolor

Or alternatively, define a second style (you can copy and paste the first one and change the name and the outline definition) and apply it.
Thank you so much! I feel so silly for overlooking this. Thanks again :D

Post Reply

Who is online

Users browsing this forum: CalixtheGreat, Google [Bot]