[SOLVED] Adding a style to a text displayable

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
User avatar
Kinmoku
Miko-Class Veteran
Posts: 560
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

[SOLVED] Adding a style to a text displayable

#1 Post by Kinmoku » Mon Feb 22, 2021 10:04 am

Hi all,

I'm using text displayables as an image, but I want to add a style to the text itself. How do I do this?

Code: Select all

image loading = Text(_("Loading...")) style "header_text"
This doesn't work:

Code: Select all

File "game/images.rpy", line 348: invalid syntax
    Text(_("Loading...")) style "header_text"
                                          ^

Ren'Py Version: Ren'Py 7.4.2.1292
Mon Feb 22 15:00:04 2021
Thanks :)
Last edited by Kinmoku on Tue Feb 23, 2021 4:47 am, edited 1 time in total.

drKlauz
Veteran
Posts: 237
Joined: Mon Oct 12, 2015 3:04 pm
Contact:

Re: Adding a style to a text displayable

#2 Post by drKlauz » Mon Feb 22, 2021 11:30 am

Text("blablabla",style="header_text")
I may be available for hire, check my thread: viewtopic.php?f=66&t=51350

User avatar
Kinmoku
Miko-Class Veteran
Posts: 560
Joined: Mon Aug 11, 2014 9:39 am
Completed: One Night Stand
Projects: Love IRL, Memories
Tumblr: gamesbykinmoku
itch: kinmoku
Location: Germany
Contact:

Re: Adding a style to a text displayable

#3 Post by Kinmoku » Tue Feb 23, 2021 4:46 am

drKlauz wrote:
Mon Feb 22, 2021 11:30 am
Text("blablabla",style="header_text")
Ahhh thank you so much! :mrgreen:

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot], _ticlock_