change the style of a particular button

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
riktik
Newbie
Posts: 5
Joined: Mon Mar 20, 2006 1:51 pm
Location: Rome (Italy)
Contact:

change the style of a particular button

#1 Post by riktik »

My game runs 400x800, I know it isn't a common resolution but it's exactly what I want for this game.

I didn't have particular problems to adapt the menus, but I couldn't find the correct statement to define the style for a particular button.

The button is "TEST" (volume of sounds).

$ style.prefs_button_text.color = mycolor

with this command I changed the color of buttons in the preferences

My background isn't uniform and I need the Test button in a further different color

thank you

marco

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:

#2 Post by PyTom »

Alas, what you ask isn't possible in 5.4.5. In 5.5, you'll be able to adjust style.soundtest_button.color, but that's a new style that wasn't found in 5.4.5.
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: Dark79