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
Message
Author
greatqwerty
Newbie
Posts: 1
Joined: Sun Apr 22, 2018 1:46 am
Contact:

Solved. Drag&Drop. Hovered/Unhovered

#1 Post 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

Post Reply

Who is online

Users browsing this forum: No registered users