Page 1 of 1

Color of Main Menu buttons

Posted: Fri Dec 10, 2004 1:25 am
by Tage
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...
init:
    $ style.mm_button.idle_color = Solid((0, 155, 255, 255))
    $ style.mm_button.hover_color = Solid((255, 255, 255, 255))
Any help would be appreciated! =| Thank you for your time.

Re: Color of Main Menu buttons

Posted: Fri Dec 10, 2004 11:24 am
by PyTom
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...
init:
$ style.mm_button.idle_color = Solid((0, 155, 255, 255))
$ style.mm_button.hover_color = Solid((255, 255, 255, 255))
Any help would be appreciated! =| Thank you for your time.
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.

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)
(Please note I just woke up, and haven't tested this. :-)

Posted: Fri Dec 10, 2004 2:34 pm
by Tage
That sounded like it made so much sense! Alas, it did not work for me... :( I appreciate the help, and any more help would still be greatly appreciated! :D Thanks for taking the time to try and help me!

Posted: Fri Dec 10, 2004 4:40 pm
by Tage
Wahahaha, I found out my problem... I was trying to edit "mm_button", which didn't do me any good because "mm_button" does not take any text styles. I needed to edit "mm_button_text". Thanks for all the help! =D

Edit: *looks at the time between posts* :shock: That took a while to figure out, lol :lol: