Solved. Drag&Drop. Hovered/Unhovered

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Posts: 1
Joined: Sun Apr 22, 2018 1:46 am

Solved. Drag&Drop. Hovered/Unhovered

#1 Post by greatqwerty » Sun Apr 22, 2018 2:42 am

while field draggable is True, hovered / unhovered work fine
if field draggable is False, unhovered is broken

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
and change this line(n203):
self.focusable = draggable
4 somthing like this:
self.focusable = draggable or droppable <-------------------- my choice
self.focusable = True

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

Post Reply

Who is online

Users browsing this forum: LateWhiteRabbit