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.
-
edouardlicn
- Regular
- Posts: 57
- Joined: Tue Feb 05, 2013 8:19 pm
- Projects: April
-
Contact:
#1
Post
by edouardlicn » Wed Jun 26, 2013 6:06 am
Code: Select all
screen calendar:
fixed:
style_group "clock"
add "ui clock background"
text ("%d" %(clock_date)) xalign 0.1 yalign 0.1 color "#fff" size 29
text ("%s" %(clock_month)) xalign 0.10 yalign 0.06 color "#fff" size 18
text ("%d" %(clock_year)) xalign 0.095 yalign 0.16 color "#fff" size 18
init python:
def max_points(*values):
return [ i for i, v in enumerate(values) if v == max(values) ]
if persistent.ch01 is None:
persistent.ch01 = False
if persistent.ch02 is None:
persistent.ch02 = False
if persistent.ch03 is None:
persistent.ch03 = False
curpage = "01"
clock_date = 1
clock_month = "Mar"
clock_year = 2012
style.clock_button_text.insensitive_color = "#000"
Why words on the calendar dosn't appear in color #000?
-
pwisaguacate
- Veteran
- Posts: 356
- Joined: Mon Mar 11, 2013 11:03 pm
-
Contact:
#2
Post
by pwisaguacate » Wed Jun 26, 2013 6:17 am
This affects textbuttons:
Code: Select all
style.clock_button_text.insensitive_color = "#000"
You want this to change text color:
Code: Select all
style.clock_text.insensitive_color = "#000"
When using the above style setting, remove the color property in your screen:
Code: Select all
screen calendar:
[...]
text ("%d" %(clock_date)) xalign 0.1 yalign 0.1 size 29
[...]
-
edouardlicn
- Regular
- Posts: 57
- Joined: Tue Feb 05, 2013 8:19 pm
- Projects: April
-
Contact:
#3
Post
by edouardlicn » Wed Jun 26, 2013 6:56 am
pwisaguacate wrote:This affects textbuttons:
Code: Select all
style.clock_button_text.insensitive_color = "#000"
You want this to change text color:
Code: Select all
style.clock_text.insensitive_color = "#000"
When using the above style setting, remove the color property in your screen:
Code: Select all
screen calendar:
[...]
text ("%d" %(clock_date)) xalign 0.1 yalign 0.1 size 29
[...]
thx
Users browsing this forum: Google [Bot]