I get the error "Exception: Only drags can be added to a drag group."
How can I achieve that?
Eventually I also want a function to trigger when the drags are being hovered over but I haven't finished the code for that yet.
Code: Select all
screen assign_roster:
vpgrid:
cols 2
xalign 0.5 yanchor 0 ypos 100
spacing 50 ysize 1000
draggroup:
drag:
draggable True
droppable False
drag_raise True
drag_name "megan_drag"
child "girls/megan/card_megan.png"
hovered NullAction()
at transform_hover
drag:
draggable True
droppable False
drag_raise True
drag_name "roxy_drag"
child "girls/roxy/card_roxy.png"
hovered NullAction()
at transform_hover
-----
init:
transform transform_hover:
on idle:
matrixcolor BrightnessMatrix(0)
on hover:
matrixcolor BrightnessMatrix(0.25)