Skip to content

Conversation

@noel-schenk
Copy link

@noel-schenk noel-schenk commented Jan 7, 2026

Hey @itsdouges amazing software you have created! We want to use it for this year's Global Game Jam.

We figured it would be nice to be able to drag and drop components into scenes. This PR adds an initial version of that.
I would suggest not merging it, as it still has some issues and flaws. But I wanted to first thank you very much for this wonderful extension and second, maybe help contribute a bit for a future feature.

Closes #43

@vercel
Copy link

vercel bot commented Jan 7, 2026

@noel-schenk is attempting to deploy a commit to the Triplex Team on Vercel.

A member of the Team first needs to authorize it.

@itsdouges
Copy link
Collaborator

itsdouges commented Jan 8, 2026

sweet! appreciate the contribution, where do you see the major points are to look at in the PR that need work? could you annotate the PR with comments on interesting piece of code / behavior / anything? video walk through would go a treat as well

tldr what do we need to do to get this merged?

@noel-schenk
Copy link
Author

noel-schenk commented Jan 8, 2026

Sure, :) currently working and then some holiday, but after, before the GGJ, I might have some time to fix more.

  • Currently the scene rendering needs a padding for the drag and drop because the iframe captures the drag and drop event.
  • Export default does not work it needs to be a named export
  • Imports are full path and not relative
  • The component gets added at the end of the first export that is found in the scene file
  • Multiple components can't get added in one drag n drop they need to be added individually

Probably more issues I haven't found yet.

Recording.2026-01-08.143251.mp4

@itsdouges
Copy link
Collaborator

oh cool I like that it uses native vscode drag and drop, good work so far! I'll x-link this to discord

@itsdouges
Copy link
Collaborator

itsdouges commented Jan 9, 2026

Currently the scene rendering needs a padding for the drag and drop because the iframe captures the drag and drop event.

we should be able to do something about this

Export default does not work it needs to be a named export

easy enough fix, default could select the first component on drop, then a have hotkey to show a UI to select a specific one?

Imports are full path and not relative

easy enough to massage this

The component gets added at the end of the first export that is found in the scene file

do you think we could immediately add the component during the drag when it hits the scene and then you can position it while still dragging?

Multiple components can't get added in one drag n drop they need to be added individually

like if you drag multiple files? is this a limitation or something we can code around to add them all at the same time?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drag & drop to add components to a scene

2 participants