I made some advanced drag and drop prototype #1530
Replies: 4 comments 4 replies
-
I love it! Better drag and drop support would be amazing in egui! |
Beta Was this translation helpful? Give feedback.
-
Splitted into one file. added load/store https://gist.github.com/enomado/5e1de10edfa55bf005d95acd0930af2b |
Beta Was this translation helpful? Give feedback.
-
I must be missing something but what is the difference between this drag and drop and the normal egui drag and drop? |
Beta Was this translation helpful? Give feedback.
-
I made a crate for drag and drop sorting, inspired by your prototype! For now it only supports sorting in a single list, no dragging between lists, but it makes implementing drag and drop a lot more straightforward. |
Beta Was this translation helpful? Give feedback.
-
2022-04-23.00-49-01.mp4
What do you think?
https://gist.github.com/enomado/07c9024d0e863754e27106ee914e59db
The code is very dirty for now. I just experimenting with egui and suddenly wanted to make this prototype before migration.
After few days with egui I want to say that its awesome.
May be you have advice how to improve. I know I could use data() instead of "property drilling".
Btw I didnt get the idea of ui.scope
Beta Was this translation helpful? Give feedback.
All reactions