Lemma Soft Forums

Supporting creators of visual novels and story-based games since 2003.


Visit our new games list, blog aggregator, IRC, and wiki.
Activation problem? Email [email protected]
It is currently Sat May 25, 2013 12:00 pm

All times are UTC - 5 hours [ DST ]


Forum rules


Ask questions about one topic per thread, and use a descriptive subject. "NotImplemented error in script.rpy" is a good subject, "Tom's problems" is not. Remember to include all of traceback.txt or error.txt when reporting a problem, as well as the relevant lines of script. Use the [code] tag to format scripts.



Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Fri Dec 10, 2004 1:25 am 
Regular
User avatar

Joined: Mon Nov 01, 2004 2:18 am
Posts: 194
Location: Memphis, TN
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...
Quote:
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.


Top
 Profile Send private message  
 
PostPosted: Fri Dec 10, 2004 11:24 am 
Ren'Py Creator
User avatar

Joined: Mon Feb 02, 2004 10:58 am
Posts: 10781
Location: Kings Park, NY
Completed: Moonlight Walks
Projects: Ren'Py
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...
Quote:
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:
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. :-)


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 2:34 pm 
Regular
User avatar

Joined: Mon Nov 01, 2004 2:18 am
Posts: 194
Location: Memphis, TN
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!


Top
 Profile Send private message  
 
 Post subject:
PostPosted: Fri Dec 10, 2004 4:40 pm 
Regular
User avatar

Joined: Mon Nov 01, 2004 2:18 am
Posts: 194
Location: Memphis, TN
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:


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


Who is online

Users browsing this forum: AxemRed


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Protected by Anti-Spam ACP
Powered by phpBB® Forum Software © phpBB Group