I have an ATL Transform I'd like to use when hovering over an imagebutton. Here's the transform:
Code: Select all
transform choicehover:
on show:
crop_relative True
alpha 0 crop (0,0, 0.0, 1.0) xoffset 0
linear 0.15 crop (0,0, 0.5, 1.0) xoffset 0
linear 0.25 alpha 1.0 crop(0,0, 1.0, 1.0 ) xoffset 0
on hide:
crop_relative True
alpha 1.0 crop (0,0, 1.0, 1.0) xoffset 0
linear 0.25 crop (0.5, 0, 1.0, 1.0) xoffset 288
linear 0.15 alpha 0.0 crop(1.0,0, 1.0, 1.0 ) xoffset 575
Code: Select all
imagebutton idle "gui/auto_off.png" selected_idle "gui/auto_select.png" hover "gui/auto_on.png" hovered choicehover clicked Preference("auto-forward", "toggle") focus_mask None
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/explore.rpy", line 2136, in script call
call screen table_search
File "game/explore.rpy", line 2485, in script call
call fortune_memory
File "game/memories.rpy", line 4613, in script
menu:
TypeError: list indices must be integers, not ATLTransform
Any ideas?