http://www.renpy.org/wiki/renpy/doc/coo ... imed_menus
Code: Select all
transform alpha_dissolve:
alpha 0.0
linear 0.5 alpha 1.0
on hide:
linear 0.5 alpha 0
# This is to fade the bar in and out, and is only required once in your script
screen countdown:
timer 0.01 repeat True action If(time > 0, true=SetVariable('time', time - 0.01), false=[Hide('countdown'), Jump(timer_jump)])
bar value time range timer_range xalign 0.5 yalign 0.9 xmaximum 300 at alpha_dissolve # This is the timer bar.
init:
$ timer_range = 0
$ timer_jump = 0
# time = the time the timer takes to count down to 0.
# timer_range = a number matching time (bar only)
# timer_jump = the label to jump to when time runs out
label start:
$ time = 5
$ timer_range = 5
$ timer_jump = 'menu1_slow'
show screen countdown
menu:
"Choice 1":
hide screen countdown
e "You chose 'Choice 1'"
jump menu1_end
"Choice 2":
hide screen countdown
e "You chose 'Choice 2'"
jump menu1_end
label menu1_slow:
e "You didn't choose anything."
label menu1_end:
e "Anyway, let's do something else."Eg.
Code: Select all
menu:
" Pick one."
"Choice 1":
pass
" Choice 2":
passBut using this code, the "choice 1" and "choice 2" text is always grey regardless of whether its hovered or idle.
How do I fix this?
Also, how do I change the color of the bar...? (Without changing the theme) Thanks you ^_^


