Plz help to find text colors statements for mouse hover

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
User avatar
tohtamish
Regular
Posts: 64
Joined: Thu Apr 29, 2010 4:56 am
Contact:

Plz help to find text colors statements for mouse hover

#1 Post by tohtamish » Sat Dec 18, 2010 1:37 pm

style.menu_choice_chosen.color - constant color style, but how can I change it by hover mouse over it?

User avatar
Alex
Lemma-Class Veteran
Posts: 2981
Joined: Fri Dec 11, 2009 5:25 pm
Contact:

Re: Plz help to find text colors statements for mouse hover

#2 Post by Alex » Sat Dec 18, 2010 2:04 pm

Try

Code: Select all

$ style.menu_choice.hover_color = "#c00000"

User avatar
tohtamish
Regular
Posts: 64
Joined: Thu Apr 29, 2010 4:56 am
Contact:

Re: Plz help to find text colors statements for mouse hover

#3 Post by tohtamish » Sat Dec 18, 2010 6:38 pm

Hmm.
It's work, but some kinda weird - I must clear temp files before running script, otherwise it ignore astyle changes.
And I don't understand, why template statemant in options.rpy have 8 digits in hex number?
Color must have 6 or 8 digits?

User avatar
backansi
Veteran
Posts: 224
Joined: Sun May 31, 2009 7:15 am
Location: Korea, Republic of
Contact:

Re: Plz help to find text colors statements for mouse hover

#4 Post by backansi » Sat Dec 18, 2010 11:38 pm

tohtamish wrote:And I don't understand, why template statemant in options.rpy have 8 digits in hex number?
Ren'Py documentation wrote: In a triple, the components represent red, green, and blue. In a quadruple, the components represent red, green, blue, and alpha.
The description of Color can be found at here.

User avatar
tohtamish
Regular
Posts: 64
Joined: Thu Apr 29, 2010 4:56 am
Contact:

Re: Plz help to find text colors statements for mouse hover

#5 Post by tohtamish » Sun Dec 19, 2010 7:35 pm

thx, all cleat
I just thought appha is first two, but I see they r at last.

Post Reply

Who is online

Users browsing this forum: Bing [Bot]