Any help would be appreciated! =| Thank you for your time.init:
$ style.mm_button.idle_color = Solid((0, 155, 255, 255))
$ style.mm_button.hover_color = Solid((255, 255, 255, 255))
Color of Main Menu buttons
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.
Color of Main Menu buttons
I've been trying to change the text color of the main menu buttons, but I haven't been able to succeed so far... I have tried this...
- 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: Color of Main Menu buttons
Invoking Solid creates a displayable, while the text color needs to be a tuple containing a color. You'd use Solid to make a background image of a color, but for text, just give the color as a tuple.Tage wrote:I've been trying to change the text color of the main menu buttons, but I haven't been able to succeed so far... I have tried this...Any help would be appreciated! =| Thank you for your time.init:
$ style.mm_button.idle_color = Solid((0, 155, 255, 255))
$ style.mm_button.hover_color = Solid((255, 255, 255, 255))
So the code you want should be:
Code: Select all
init:
$ style.mm_button.idle_color = (0, 155, 255, 255)
$ style.mm_button.hover_color = (255, 255, 255, 255)
Who is online
Users browsing this forum: Amazon [Bot], Google [Bot]