How to remove text outline for specific texts?

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
Yuvan raj
Posts: 32
Joined: Wed Feb 17, 2021 11:24 am

How to remove text outline for specific texts?

#1 Post by Yuvan raj » Fri May 14, 2021 9:17 am

Hello, I have outlines for the texts in my VN using the code:

Code: Select all

define gui.text_outlines = [ (2,"#000000",0,0) ]
But I want to remove the text outline for some texts which I'm using in a screen. This below is my screen code:

Code: Select all

screen statusbuttons():    

        xalign 0.907
        yalign 0.64

        text "Money"

        text "Energy"

        text "Fighting Skill"

        text "Intelligence"

        text "Charm"
This is the screenshot of the VN.
I don't want outlines for these texts in the screen. How should I go about accomplishing that? Your help will be very much appreciated. Thank you!

Posts: 4
Joined: Fri May 14, 2021 5:54 pm

Re: How to remove text outline for specific texts?

#2 Post by Fynmorph » Sat May 15, 2021 7:15 pm

Well you can define a style for text without outlines.

Code: Select all

style naked:
	outlines [ (absolute(0), "#000", absolute(0), absolute(0)) ]
and when you need to, you apply it to text you dont want outlines on.

text "putaaain" style "naked"

or you do the opposite (create a style that adds outlines, and only put that style on texts you want outlines)

Post Reply

Who is online

Users browsing this forum: No registered users