Error in Style Properties Documentation

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
qirien
Miko-Class Veteran
Posts: 541
Joined: Thu Jul 31, 2003 10:06 pm
Organization: Metasepia Games
Deviantart: qirien
Github: qirien
itch: qirien
Location: New Mexico, USA
Discord: qirien
Contact:

Error in Style Properties Documentation

#1 Post by qirien »

There is an error in the Style Properties documentation in the example code. There should be no "=" sign between the property and the value:

Code: Select all

# The button text is yellow when selected, and white
# otherwise.
 style button_text:
     color = "#fff"
     selected_color = "#ff0"
Also, that code is shown as being under an "init python" block, when such a block is not needed.

Thank you!
Finished games:
Image
Image
Image

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Error in Style Properties Documentation

#2 Post by PyTom »

Thanks for letting me know. This has been fixed in the dev documentation, and will be released with 6.18.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users