Page 1 of 1

Solved. Drag&Drop. Hovered/Unhovered

Posted: Sun Apr 22, 2018 2:42 am
by greatqwerty
while field draggable is True, hovered / unhovered work fine
if field draggable is False, unhovered is broken

drag:
drag_name child.id
draggable True <------------------------------------------------
droppable True
drag_raise False
dropped child.callback_dropped
clicked child.callback_clicked
hovered child.callback_hovered
unhovered child.callback_unhovered <------------------------------not working while draggable = True
child child.displayable
pos child.xy

2 fix this, u need 2 go \renpy-6.99.14-sdk\renpy\display
open dragdrop.py
and change this line(n203):
self.focusable = draggable
4 somthing like this:
self.focusable = draggable or droppable <-------------------- my choice
or
self.focusable = True


and sorry for my english, it's not my native lang