Text-formatting in gui.about in options.rpy
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.
-
- Regular
- Posts: 164
- Joined: Wed Nov 08, 2017 4:32 pm
- Projects: HSS
- Deviantart: studioerrilhl
- Github: studioerrilhl
- Contact:
Text-formatting in gui.about in options.rpy
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.
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.
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Text-formatting in gui.about in options.rpy
You'll need to use screen properties
https://www.renpy.org/doc/html/style_pr ... properties
https://www.renpy.org/doc/html/style_pr ... properties
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 164
- Joined: Wed Nov 08, 2017 4:32 pm
- Projects: HSS
- Deviantart: studioerrilhl
- Github: studioerrilhl
- Contact:
Re: Text-formatting in gui.about in options.rpy
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?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Text-formatting in gui.about in options.rpy
The link itself is the screen properties I was referring to.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 164
- Joined: Wed Nov 08, 2017 4:32 pm
- Projects: HSS
- Deviantart: studioerrilhl
- Github: studioerrilhl
- Contact:
Re: Text-formatting in gui.about in options.rpy
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...
Makes me wonder why the Renpy-engine doesn't just use HTML / CSS elements and properties for text and visualisation...
-
- Regular
- Posts: 164
- Joined: Wed Nov 08, 2017 4:32 pm
- Projects: HSS
- Deviantart: studioerrilhl
- Github: studioerrilhl
- Contact:
Re: Text-formatting in gui.about in options.rpy
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...?
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...?
- Imperf3kt
- Lemma-Class Veteran
- Posts: 3785
- Joined: Mon Dec 14, 2015 5:05 am
- itch: Imperf3kt
- Location: Your monitor
- Contact:
Re: Text-formatting in gui.about in options.rpy
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.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
Twitter
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project: GGD Mentor
-
- Regular
- Posts: 164
- Joined: Wed Nov 08, 2017 4:32 pm
- Projects: HSS
- Deviantart: studioerrilhl
- Github: studioerrilhl
- Contact:
Re: Text-formatting in gui.about in options.rpy
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?
Who is online
Users browsing this forum: Google [Bot], henne, Semrush [Bot]