Izakiya
Member
- Apr 29, 2023
- 153
- 584
- 147
I just want to add a small image to the end of the renpy notification. Like a thumbs up when you make the right choice or something. I have this added to my screens.rpy but it's not working. It's showing the default notify message.
screen notify(message):
frame:
style "notify_frame"
at notify_fade
padding (8, 5)
hbox:
spacing 10
add "images/thumb.png" xysize (32, 32)
text message style "notify_text"
transform notify_fade:
on show:
alpha 0.0
linear 0.2 alpha 1.0
pause 2.5
linear 0.5 alpha 0.0
on hide:
alpha 0.0
style notify_frame is default:
xalign 0.98
yalign 0.95
background "#111C"
padding (10, 5)
xmaximum 450
yminimum 40
style notify_text is default:
color "#FFD700"
font "fonts/wingdings.ttf"
size 20
outlines [(1, "#000", 0, 0)]
yalign 0.5
screen notify(message):
frame:
style "notify_frame"
at notify_fade
padding (8, 5)
hbox:
spacing 10
add "images/thumb.png" xysize (32, 32)
text message style "notify_text"
transform notify_fade:
on show:
alpha 0.0
linear 0.2 alpha 1.0
pause 2.5
linear 0.5 alpha 0.0
on hide:
alpha 0.0
style notify_frame is default:
xalign 0.98
yalign 0.95
background "#111C"
padding (10, 5)
xmaximum 450
yminimum 40
style notify_text is default:
color "#FFD700"
font "fonts/wingdings.ttf"
size 20
outlines [(1, "#000", 0, 0)]
yalign 0.5