Jump to content
Eathox

[Need help] TreeView Drag-and-Drop

Recommended Posts

Greetings, i am a budding modder

 

i'm currently in the process of making a mod that allows users to sort their loadouts using treeview.

 

however i hit a roadblock when trying to implement a drag-and-drop system for usability,

i have thus far been unable to successfully implement drag-and-drop, i have looked over the code Bohemia used in their layer system (used in the Eden editor), but could not find any code related to drag-and-drop.

can anyone help me figure this out?

 

any help would be appreciated.

 

Share this post


Link to post
Share on other sites

After finding an old post clarifying that onTreeMouseMove returns [|c|,|path|] (Path of the Tv mouse is hovering over) i managed to make my system work with a combination of onMouseButtonDown, onMouseButtonUp and onTreeMouseMove eventhandlers. 

 

Hope this helps anyone.

  • Like 1

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×