Here's my LayeredImage code:
Code: Select all
layeredimage family_photo:
always:
"pond"
if (neglectful < 50):
align(0.3, 1.0)
"him happy"
if True:
align(0.7, 1.0)
"her normal"
group kid:
align(0.45, 1.0)
attribute happy:
"kid happy"
attribute sad:
"kid sad"
if True:
"polaroid"
image family_photo_small = LayeredImageProxy("family_photo", Transform(crop=(306,22,675,680), zoom=photo_scale_factor))
Code: Select all
show family_photo_small happy
Code: Select all
screen test_family_photo_screen():
frame:
xfill True
yfill True
hbox:
vbox:
label "Photo 1"
add "family_photo_small happy"
vbox:
label "Photo 2"
label "We'll move this down a little."
add "family_photo_small happy"
textbutton "Done" action Return()