How to change file picker disabled text colour?

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
crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

How to change file picker disabled text colour?

#1 Post by crimsonnight »

Hi. I'm currently customizing my menu screens but have encountered a couple of problems. Firstly, in the save/load screen, text isn't displaying on files that are unselectable, I'm guessing this is due to the text being the same colour as disabled widget colour. So, what's the code I need to force the text within disabled widgets in the save/load screen to be a certain colour?

Code: Select all

style.file_picker_disabled_text.color = "#a1a3b3"
doesn't seem to have any effect.
My second question relates to giving text displayed on buttons in the preferences menu an outline. Again,

Code: Select all

style.widget_text.outlines = my_l
combined with

Code: Select all

$ my_l = [(3.3, "#c6fae0", 0, 0)]
doesn't seem to have any effect. What are the correct commands I need to actually execute my code?

Thanks,

*EDIT* Got a new one that I can't get to register:

Code: Select all

style.pref_slider.idle_color = "#38547e"
also tried others such as

Code: Select all

style.pref_slider.background = "#38547e"
alwaysthesamebluesky.com

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: How to change file picker disabled text colour?

#2 Post by crimsonnight »

The game's virtually ready for (re-)release so help with this would be greatly appreciated :)
alwaysthesamebluesky.com

crimsonnight
Veteran
Posts: 298
Joined: Fri Apr 20, 2012 4:44 am
Contact:

Re: How to change file picker disabled text colour?

#3 Post by crimsonnight »

Just in case anyone needs it in the future, chatted to Tom on IRC and he let me know the code is:

Code: Select all

style file_picker_text:
    insensitive_color "#a1a3b3"
alwaysthesamebluesky.com

Post Reply

Who is online

Users browsing this forum: No registered users