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.
I'm sorry, but errors were detected in your script. Please correct the
errors listed below, and try again.
File "game/script.rpy", line 21: style property idle is not known.
idle "fe3eed"
^
Ren'Py Version: Ren'Py 6.99.10.1227
In imagebuttons, "idle" and "hover" ARE the buttons themselves.
Instead, in textbuttons, the button is the TEXT, and what you want is to apply properties to that text when is hovered/unhovered. That's not easy because the textbuttons are a combination of button and text, and the color of the text of a textbutton is defined in the property "text_color" and not in "color" (as it is in in the "text" element).
So, you need to define a style and apply it with "text_style" or define directly text_color (for idle) and text_hover_color (for hover):