Text-formatting in gui.about in options.rpy

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
Errilhl
Regular
Posts: 150
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Contact:

Text-formatting in gui.about in options.rpy

#1 Post by Errilhl » Wed Nov 15, 2017 7:03 pm

You can define the content of the About-page via gui.about in the options.rpy - all good.

However, this text does not seem to accept any of the in-game definitions (like {b} for bold and so on), so I'm wondering if there are some other magic-tricks that can be used to modify the look of this text? If one needs to modify the screen about(), that's fine.

The real reason I'm asking is that I've copied the about()-screen code for a changelog input on the main menu, and I would like to be able to make it a proper list, instea of a list of *-prefixed lines, as I have now.
Currently working on: Image

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1043
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Text-formatting in gui.about in options.rpy

#2 Post by Imperf3kt » Wed Nov 15, 2017 8:28 pm

You'll need to use screen properties
https://www.renpy.org/doc/html/style_pr ... properties
Image

Warning: May contain trace amounts of gratuitous plot.

Errilhl
Regular
Posts: 150
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Contact:

Re: Text-formatting in gui.about in options.rpy

#3 Post by Errilhl » Wed Nov 15, 2017 9:00 pm

Uhm... I couldn't find any "screen properties" in there? Granted, the documentation for Renpy is abysmally bad, but could you perhaps expand a little on the suggestion?
Currently working on: Image

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1043
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Text-formatting in gui.about in options.rpy

#4 Post by Imperf3kt » Wed Nov 15, 2017 9:32 pm

The link itself is the screen properties I was referring to.
Image

Warning: May contain trace amounts of gratuitous plot.

Errilhl
Regular
Posts: 150
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Contact:

Re: Text-formatting in gui.about in options.rpy

#5 Post by Errilhl » Thu Nov 16, 2017 9:15 am

I'm not entirely sure how this will help, though, as I fail to see how I can apply these attributes to specific parts of the text.

Makes me wonder why the Renpy-engine doesn't just use HTML / CSS elements and properties for text and visualisation...
Currently working on: Image

Errilhl
Regular
Posts: 150
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Contact:

Re: Text-formatting in gui.about in options.rpy

#6 Post by Errilhl » Thu Nov 16, 2017 9:29 am

Or, were you thinking about this link: https://www.renpy.org/doc/html/screens.html ?

Regardless, it doesn't seem possible to do what I want to do, at least not via the gui.about content from options.rpy - maybe I will just have to rethink the display / where I assign the content.

But, seriously... doesn't Renpy have an unordered (or ordered) list function for text...?
Currently working on: Image

User avatar
Imperf3kt
Eileen-Class Veteran
Posts: 1043
Joined: Mon Dec 14, 2015 5:05 am
Location: Your monitor
Contact:

Re: Text-formatting in gui.about in options.rpy

#7 Post by Imperf3kt » Thu Nov 16, 2017 3:04 pm

I don't have enough time o give a detailed reply (sorry) but You can use the style inspection tool (shift + I over any thing in the game you want to inspect, while running the game) to see what properties apply to it.
Image

Warning: May contain trace amounts of gratuitous plot.

Errilhl
Regular
Posts: 150
Joined: Wed Nov 08, 2017 4:32 pm
Projects: HSS
Contact:

Re: Text-formatting in gui.about in options.rpy

#8 Post by Errilhl » Thu Nov 16, 2017 4:12 pm

Yeah, and it lists some styles - however, those are "global" styles - ie, they apply to the whole text. It seems, if I want specific text to have different looks, I need to frame that text on its own. That can't be right, can it? There must be some way to just make ANY text on ANY page of the game use modifiers to the actual text? Like the {i} and {b} modifiers in the dialogues in the actual game?
Currently working on: Image

Post Reply

Who is online

Users browsing this forum: Lucky Duck