Skip to content

Dropping items on ground #200

Answered by peter-kish
TreaBeardGaming asked this question in Q&A
Discussion options

You must be logged in to vote

Unfortunately, this is another thing that is not fully supported by the plugin. In the future, I might implement some sort of item drop controls that can handle item drops.

But for now you can try the dev_v2.4.8 branch (hope to merge it soon), where you should be able to implement _drop_data for any control and detect item drops (or any other kinds of UI control drops). Then it's just a matter of creating a control that is the size of the screen and placing it behind all other UI controls. Using the NOTIFICATION_DRAG_END notification followed by a Viewport.gui_is_drag_successful() check should also work.

And if you really want to use the master branch, you can create a transparent item sl…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TreaBeardGaming
Comment options

Answer selected by TreaBeardGaming
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants